Class: Vacuum::Endpoint::ProductAdvertising
- Defined in:
- lib/vacuum/endpoint/product_advertising.rb
Overview
A Product Advertising API endpoint.
Constant Summary collapse
- HOSTS =
A list of Product Advertising API hosts.
{ 'CA' => 'ecs.amazonaws.ca', 'CN' => 'webservices.amazon.cn', 'DE' => 'ecs.amazonaws.de', 'ES' => 'webservices.amazon.es', 'FR' => 'ecs.amazonaws.fr', 'IT' => 'webservices.amazon.it', 'JP' => 'ecs.amazonaws.jp', 'UK' => 'ecs.amazonaws.co.uk', 'US' => 'ecs.amazonaws.com' }
Constants inherited from Base
Instance Attribute Summary collapse
-
#tag ⇒ Object
Sets the String Associate tag.
Attributes inherited from Base
Instance Method Summary collapse
-
#host ⇒ Object
Returns a String Product Advertising API host.
Methods inherited from Base
Instance Attribute Details
#tag ⇒ Object
Sets the String Associate tag.
Raises a Missing Tag error if tag is missing.
26 27 28 |
# File 'lib/vacuum/endpoint/product_advertising.rb', line 26 def tag @tag or raise MissingTag end |
Instance Method Details
#host ⇒ Object
Returns a String Product Advertising API host.
19 20 21 |
# File 'lib/vacuum/endpoint/product_advertising.rb', line 19 def host HOSTS[locale] end |