Class: DHLGM::Configuration
- Inherits:
-
Object
- Object
- DHLGM::Configuration
- Defined in:
- lib/dhlgm-track/configuration.rb
Instance Attribute Summary collapse
-
#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
5 6 7 8 9 |
# File 'lib/dhlgm-track/configuration.rb', line 5 def initialize @timeout = 5000 @username = ENV['DHLGM_USERNAME'] @password = ENV['DHLGM_PASSWORD'] end |
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/dhlgm-track/configuration.rb', line 3 def password @password end |
#timeout ⇒ Object
Returns the value of attribute timeout.
3 4 5 |
# File 'lib/dhlgm-track/configuration.rb', line 3 def timeout @timeout end |
#username ⇒ Object
Returns the value of attribute username.
3 4 5 |
# File 'lib/dhlgm-track/configuration.rb', line 3 def username @username end |