Class: Nomics::Configuration
- Inherits:
-
Object
- Object
- Nomics::Configuration
- Defined in:
- lib/nomics/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#wait_time_in_between_calls ⇒ Object
Returns the value of attribute wait_time_in_between_calls.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 |
# File 'lib/nomics/configuration.rb', line 5 def initialize @api_key = ENV['NOMICS_API_KEY'] @wait_time_in_between_calls = nil end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/nomics/configuration.rb', line 3 def api_key @api_key end |
#wait_time_in_between_calls ⇒ Object
Returns the value of attribute wait_time_in_between_calls.
3 4 5 |
# File 'lib/nomics/configuration.rb', line 3 def wait_time_in_between_calls @wait_time_in_between_calls end |