Class: Ebay::Taxonomy
- Inherits:
-
Base
- Object
- Base
- Ebay::Taxonomy
show all
- Defined in:
- lib/ebay/taxonomy.rb
Instance Attribute Summary
Attributes inherited from Base
#client
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Constructor Details
This class inherits a constructor from Ebay::Base
Instance Method Details
#get_category_subtree(category_tree_id, category_id) ⇒ Object
16
17
18
|
# File 'lib/ebay/taxonomy.rb', line 16
def get_category_subtree(category_tree_id, category_id)
client.get("/commerce/taxonomy/v1/category_tree/#{URI.encode_www_form_component(category_tree_id)}/get_category_subtree", category_id: category_id)
end
|
#get_category_tree(category_tree_id) ⇒ Object
12
13
14
|
# File 'lib/ebay/taxonomy.rb', line 12
def get_category_tree(category_tree_id)
client.get("/commerce/taxonomy/v1/category_tree/#{URI.encode_www_form_component(category_tree_id)}")
end
|
#get_default_category_tree_id(marketplace_id = nil) ⇒ Object
7
8
9
10
|
# File 'lib/ebay/taxonomy.rb', line 7
def get_default_category_tree_id(marketplace_id = nil)
mid = marketplace_id || client.configuration.marketplace_id
client.get("/commerce/taxonomy/v1/get_default_category_tree_id", marketplace_id: mid)
end
|