Class: AmazonProduct::Locale
- Inherits:
-
Object
- Object
- AmazonProduct::Locale
- Defined in:
- lib/amazon_product/locale.rb
Overview
An Amazon locale.
Constant Summary collapse
- HOSTS =
Amazon hosts.
{ :ca => 'ecs.amazonaws.ca', :cn => 'webservices.amazon.cn', :de => 'ecs.amazonaws.de', :fr => 'ecs.amazonaws.fr', :it => 'webservices.amazon.it', :jp => 'ecs.amazonaws.jp', :us => 'ecs.amazonaws.com', :uk => 'ecs.amazonaws.co.uk' }
- LOCALES =
Country codes for Amazon locales.
HOSTS.keys
Instance Attribute Summary collapse
-
#key ⇒ Object
The Amazon Web Services access key.
-
#secret ⇒ Object
The Amazon Web Services secret.
-
#tag ⇒ Object
The Amazon associate tag.
Instance Method Summary collapse
-
#host ⇒ Object
The Amazon host.
-
#initialize(locale) ⇒ Locale
constructor
A new instance of Locale.
Constructor Details
Instance Attribute Details
#key ⇒ Object
The Amazon Web Services access key.
18 19 20 |
# File 'lib/amazon_product/locale.rb', line 18 def key @key end |
#secret ⇒ Object
The Amazon Web Services secret.
21 22 23 |
# File 'lib/amazon_product/locale.rb', line 21 def secret @secret end |
#tag ⇒ Object
The Amazon associate tag.
24 25 26 |
# File 'lib/amazon_product/locale.rb', line 24 def tag @tag end |
Instance Method Details
#host ⇒ Object
The Amazon host.
32 33 34 |
# File 'lib/amazon_product/locale.rb', line 32 def host HOSTS[@locale] end |