Class: Vacuum::Locale
- Inherits:
-
Object
- Object
- Vacuum::Locale
- Defined in:
- lib/vacuum/locale.rb
Overview
The target locale
Defined Under Namespace
Classes: NotFound
Instance Attribute Summary collapse
- #access_key ⇒ String readonly
- #host ⇒ String readonly
- #partner_tag ⇒ String readonly
- #partner_type ⇒ String readonly
- #region ⇒ String readonly
- #secret_key ⇒ String readonly
Instance Method Summary collapse
-
#initialize(marketplace, access_key:, secret_key:, partner_tag:, partner_type: 'Associates') ⇒ Locale
constructor
Creates a locale.
Constructor Details
#initialize(marketplace, access_key:, secret_key:, partner_tag:, partner_type: 'Associates') ⇒ Locale
Creates a locale
49 50 51 52 53 54 55 56 |
# File 'lib/vacuum/locale.rb', line 49 def initialize(marketplace, access_key:, secret_key:, partner_tag:, partner_type: 'Associates') @host, @region = find_host_and_region(marketplace) @access_key = access_key @secret_key = secret_key @partner_tag = partner_tag @partner_type = partner_type end |
Instance Attribute Details
#access_key ⇒ String (readonly)
38 39 40 |
# File 'lib/vacuum/locale.rb', line 38 def access_key @access_key end |
#host ⇒ String (readonly)
38 39 40 |
# File 'lib/vacuum/locale.rb', line 38 def host @host end |
#partner_tag ⇒ String (readonly)
38 39 40 |
# File 'lib/vacuum/locale.rb', line 38 def partner_tag @partner_tag end |
#partner_type ⇒ String (readonly)
38 39 40 |
# File 'lib/vacuum/locale.rb', line 38 def partner_type @partner_type end |
#region ⇒ String (readonly)
38 39 40 |
# File 'lib/vacuum/locale.rb', line 38 def region @region end |
#secret_key ⇒ String (readonly)
38 39 40 |
# File 'lib/vacuum/locale.rb', line 38 def secret_key @secret_key end |