Class: Shipwire::Configuration
- Inherits:
-
Object
- Object
- Shipwire::Configuration
- Defined in:
- lib/shipwire/configuration.rb
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
-
#password ⇒ Object
Returns the value of attribute password.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 14 15 16 17 |
# File 'lib/shipwire/configuration.rb', line 10 def initialize @username = nil @password = nil @open_timeout = 2 @timeout = 5 @endpoint = "https://api.shipwire.com" @logger = false end |
Instance Attribute Details
#endpoint ⇒ Object
Returns the value of attribute endpoint.
3 4 5 |
# File 'lib/shipwire/configuration.rb', line 3 def endpoint @endpoint end |
#logger ⇒ Object
Returns the value of attribute logger.
3 4 5 |
# File 'lib/shipwire/configuration.rb', line 3 def logger @logger end |
#open_timeout ⇒ Object
Returns the value of attribute open_timeout.
3 4 5 |
# File 'lib/shipwire/configuration.rb', line 3 def open_timeout @open_timeout end |
#password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/shipwire/configuration.rb', line 3 def password @password end |
#timeout ⇒ Object
Returns the value of attribute timeout.
3 4 5 |
# File 'lib/shipwire/configuration.rb', line 3 def timeout @timeout end |
#username ⇒ Object
Returns the value of attribute username.
3 4 5 |
# File 'lib/shipwire/configuration.rb', line 3 def username @username end |