Class: ShippingScale::Configuration
- Inherits:
-
Struct
- Object
- Struct
- ShippingScale::Configuration
- Defined in:
- lib/shipping_scale/configuration.rb
Instance Attribute Summary collapse
-
#testing ⇒ Object
(also: #testing?)
Returns the value of attribute testing.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
-
#zip_destination ⇒ Object
Returns the value of attribute zip_destination.
-
#zip_origination ⇒ Object
Returns the value of attribute zip_origination.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
3 4 5 6 7 |
# File 'lib/shipping_scale/configuration.rb', line 3 def initialize self.timeout = 5 self.testing = false self.user_id = (ENV.fetch("USPS_USER_ID")) ? ENV.fetch("USPS_USER_ID") : nil end |
Instance Attribute Details
#testing ⇒ Object Also known as: testing?
Returns the value of attribute testing
2 3 4 |
# File 'lib/shipping_scale/configuration.rb', line 2 def testing @testing end |
#timeout ⇒ Object
Returns the value of attribute timeout
2 3 4 |
# File 'lib/shipping_scale/configuration.rb', line 2 def timeout @timeout end |
#user_id ⇒ Object
Returns the value of attribute user_id
2 3 4 |
# File 'lib/shipping_scale/configuration.rb', line 2 def user_id @user_id end |
#zip_destination ⇒ Object
Returns the value of attribute zip_destination
2 3 4 |
# File 'lib/shipping_scale/configuration.rb', line 2 def zip_destination @zip_destination end |
#zip_origination ⇒ Object
Returns the value of attribute zip_origination
2 3 4 |
# File 'lib/shipping_scale/configuration.rb', line 2 def zip_origination @zip_origination end |