Class: Concurrency::Configuration
- Inherits:
-
Object
- Object
- Concurrency::Configuration
- Defined in:
- lib/concurrency/configuration.rb
Instance Attribute Summary collapse
-
#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 |
# File 'lib/concurrency/configuration.rb', line 5 def initialize @from_currency = "USD" @to_currency = "INR" end |
Instance Attribute Details
#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 |