Class: EposNowClient::Resources::Brands
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/brands.rb', line 6
def all(params = {})
fetch_all_pages(params)
end
|
#create_brand(attributes) ⇒ Object
14
15
16
|
# File 'lib/epos_now_client/resources/brands.rb', line 14
def create_brand(attributes)
create(attributes)
end
|
#delete_brand(id) ⇒ Object
22
23
24
|
# File 'lib/epos_now_client/resources/brands.rb', line 22
def delete_brand(id)
destroy(id)
end
|
#find(id) ⇒ Object
10
11
12
|
# File 'lib/epos_now_client/resources/brands.rb', line 10
def find(id)
fetch(id)
end
|
#update_brand(id, attributes) ⇒ Object
18
19
20
|
# File 'lib/epos_now_client/resources/brands.rb', line 18
def update_brand(id, attributes)
update(id, attributes)
end
|