Class: ShippingEasy::Configuration
- Inherits:
-
Object
- Object
- ShippingEasy::Configuration
- 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
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_secret ⇒ Object
Returns the value of attribute api_secret.
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#http_adapter ⇒ Object
Returns the value of attribute http_adapter.
-
#partner_api_key ⇒ Object
Returns the value of attribute partner_api_key.
-
#partner_api_secret ⇒ Object
Returns the value of attribute partner_api_secret.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
Creates a configuration object, setting the default attributes.
Constructor Details
#initialize ⇒ Configuration
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_key ⇒ Object
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_secret ⇒ Object
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_version ⇒ Object
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_url ⇒ Object
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_adapter ⇒ Object
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_key ⇒ Object
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_secret ⇒ Object
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 |