Class: ShippingEasy::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/shipping_easy/configuration.rb

Constant Summary collapse

LEGACY_URL =
"https://app.shippingeasy.com"
DEFAULT_URL =
"https://api.shippingeasy.com"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Creates a configuration object, setting the default attributes.



28
29
30
31
# File 'lib/shipping_easy/configuration.rb', line 28

def initialize
  @http_adapter = ShippingEasy::Http::FaradayAdapter
  @base_url = DEFAULT_URL
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



20
21
22
# File 'lib/shipping_easy/configuration.rb', line 20

def api_key
  @api_key
end

#api_secretObject

Returns the value of attribute api_secret.



20
21
22
# File 'lib/shipping_easy/configuration.rb', line 20

def api_secret
  @api_secret
end

#api_versionObject

Returns the value of attribute api_version.



20
21
22
# File 'lib/shipping_easy/configuration.rb', line 20

def api_version
  @api_version
end

#base_urlObject

Returns the value of attribute base_url.



19
20
21
# File 'lib/shipping_easy/configuration.rb', line 19

def base_url
  @base_url
end

#http_adapterObject

Returns the value of attribute http_adapter.



20
21
22
# File 'lib/shipping_easy/configuration.rb', line 20

def http_adapter
  @http_adapter
end

#partner_api_keyObject

Returns the value of attribute partner_api_key.



20
21
22
# File 'lib/shipping_easy/configuration.rb', line 20

def partner_api_key
  @partner_api_key
end

#partner_api_secretObject

Returns the value of attribute partner_api_secret.



20
21
22
# File 'lib/shipping_easy/configuration.rb', line 20

def partner_api_secret
  @partner_api_secret
end