Class: AGCOD::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/aws_agcod/config.rb

Constant Summary collapse

URI =
{
  sandbox: 'https://agcod-v2-gamma.amazon.com',
  production: 'https://agcod-v2.amazon.com'
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



15
16
17
18
19
# File 'lib/aws_agcod/config.rb', line 15

def initialize
  # API defaults
  @production = false
  @region = 'us-east-1'
end

Instance Attribute Details

#access_keyObject

Returns the value of attribute access_key.



4
5
6
# File 'lib/aws_agcod/config.rb', line 4

def access_key
  @access_key
end

#partner_idObject

Returns the value of attribute partner_id.



4
5
6
# File 'lib/aws_agcod/config.rb', line 4

def partner_id
  @partner_id
end

#productionObject

Returns the value of attribute production.



4
5
6
# File 'lib/aws_agcod/config.rb', line 4

def production
  @production
end

#regionObject

Returns the value of attribute region.



4
5
6
# File 'lib/aws_agcod/config.rb', line 4

def region
  @region
end

#secret_keyObject

Returns the value of attribute secret_key.



4
5
6
# File 'lib/aws_agcod/config.rb', line 4

def secret_key
  @secret_key
end

#uriObject



21
22
23
24
25
# File 'lib/aws_agcod/config.rb', line 21

def uri
  return @uri if @uri

  production ? URI[:production] : URI[:sandbox]
end