Class: Concurrency::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/concurrency/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keyObject

Returns the value of attribute api_key.



3
4
5
# File 'lib/concurrency/configuration.rb', line 3

def api_key
  @api_key
end

#from_currencyObject

Returns the value of attribute from_currency.



3
4
5
# File 'lib/concurrency/configuration.rb', line 3

def from_currency
  @from_currency
end

#to_currencyObject

Returns the value of attribute to_currency.



3
4
5
# File 'lib/concurrency/configuration.rb', line 3

def to_currency
  @to_currency
end