Class: AmazonProductAdvertisingApi::Operations::Item::ItemLookup
- Inherits:
-
Base::Request
- Object
- Base::Request
- AmazonProductAdvertisingApi::Operations::Item::ItemLookup
- Includes:
- Common
- Defined in:
- lib/amazon_product_advertising_api/operations/item.rb
Overview
A class to represent the ItemLookup Operation. See AmazonProductAdvertisingApi::Operations::Base::Request for info relating to all Requests.
It mixes in AmazonProductAdvertisingApi::Operations::Item::Common for it’s parse method.
Constant Summary collapse
- REQUEST_PARAMETERS =
:condition, :id_type, :item_id, :merchant_id, :offer_page, :related_items_page, :relationship_type, :review_page, :review_sort, :search_index, :tag_page, :tags_per_page, :tag_sort, :variation_page, :response_group
Constants inherited from Base::Request
Base::Request::API_VERSION, Base::Request::SERVICE_URLS
Instance Attribute Summary
Attributes inherited from Base::Request
#errors, #hpricot_data, #is_valid, #operation, #raw_data, #region, #request_uri, #response
Instance Method Summary collapse
-
#initialize(item_id, region = :uk) ⇒ ItemLookup
constructor
ItemLookup only requires an item id (ASIN) to be specified.
Methods included from Common
Methods inherited from Base::Request
Constructor Details
#initialize(item_id, region = :uk) ⇒ ItemLookup
ItemLookup only requires an item id (ASIN) to be specified.
97 98 99 100 101 102 103 |
# File 'lib/amazon_product_advertising_api/operations/item.rb', line 97 def initialize(item_id, region = :uk) super() self.item_id = item_id self.operation = "ItemLookup" self.region = region end |