Class: EposNowClient::Resources::Categories
Instance Attribute Summary
Attributes inherited from BaseResource
#connection
Instance Method Summary
collapse
#initialize
Instance Method Details
#all(params = {}) ⇒ Object
6
7
8
|
# File 'lib/epos_now_client/resources/categories.rb', line 6
def all(params = {})
fetch_all_pages(params)
end
|
#create_category(attributes) ⇒ Object
14
15
16
|
# File 'lib/epos_now_client/resources/categories.rb', line 14
def create_category(attributes)
create(attributes)
end
|
#delete_category(id) ⇒ Object
22
23
24
|
# File 'lib/epos_now_client/resources/categories.rb', line 22
def delete_category(id)
destroy(id)
end
|
#find(id) ⇒ Object
10
11
12
|
# File 'lib/epos_now_client/resources/categories.rb', line 10
def find(id)
fetch(id)
end
|
#update_category(id, attributes) ⇒ Object
18
19
20
|
# File 'lib/epos_now_client/resources/categories.rb', line 18
def update_category(id, attributes)
update(id, attributes)
end
|