Class: Concurrency::Configuration
- Inherits:
-
Object
- Object
- Concurrency::Configuration
- Defined in:
- lib/concurrency/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#from_currency ⇒ Object
Returns the value of attribute from_currency.
-
#to_currency ⇒ Object
Returns the value of attribute to_currency.
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 9 |
# File 'lib/concurrency/configuration.rb', line 5 def initialize @from_currency = "USD" @to_currency = "INR" @api_key = ENV['CONCURRENCY_APIKEY'] end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/concurrency/configuration.rb', line 3 def api_key @api_key end |
#from_currency ⇒ Object
Returns the value of attribute from_currency.
3 4 5 |
# File 'lib/concurrency/configuration.rb', line 3 def from_currency @from_currency end |
#to_currency ⇒ Object
Returns the value of attribute to_currency.
3 4 5 |
# File 'lib/concurrency/configuration.rb', line 3 def to_currency @to_currency end |