Module: BaseApi::Client::ItemCategories
- Included in:
- BaseApi::Client
- Defined in:
- lib/base_api/client/item_categories.rb
Instance Method Summary collapse
- #item_categories_add(item_id, category_id, &block) ⇒ HTTParty::Response
- #item_categories_delete(item_category_id, &block) ⇒ HTTParty::Response
- #item_categories_detail(item_id, &block) ⇒ HTTParty::Response
Instance Method Details
#item_categories_add(item_id, category_id, &block) ⇒ HTTParty::Response
15 16 17 |
# File 'lib/base_api/client/item_categories.rb', line 15 def item_categories_add(item_id, category_id, &block) call_post_api('/1/item_categories/add', { item_id: item_id, category_id: category_id }, &block) end |
#item_categories_delete(item_category_id, &block) ⇒ HTTParty::Response
22 23 24 |
# File 'lib/base_api/client/item_categories.rb', line 22 def item_categories_delete(item_category_id, &block) call_post_api('/1/item_categories/delete', { item_category_id: item_category_id }, &block) end |
#item_categories_detail(item_id, &block) ⇒ HTTParty::Response
7 8 9 |
# File 'lib/base_api/client/item_categories.rb', line 7 def item_categories_detail(item_id, &block) call_get_api("/1/item_categories/detail/#{item_id}", &block) end |