Class: LightCurrencyConverter::CurrencyEntry
- Inherits:
-
Object
- Object
- LightCurrencyConverter::CurrencyEntry
- Defined in:
- lib/light_currency_convert/currency_entity.rb
Instance Attribute Summary collapse
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, currency) ⇒ CurrencyEntry
constructor
A new instance of CurrencyEntry.
Constructor Details
#initialize(value, currency) ⇒ CurrencyEntry
Returns a new instance of CurrencyEntry.
5 6 7 8 |
# File 'lib/light_currency_convert/currency_entity.rb', line 5 def initialize(value, currency) @value = value.to_f @currency = currency end |
Instance Attribute Details
#currency ⇒ Object
Returns the value of attribute currency.
3 4 5 |
# File 'lib/light_currency_convert/currency_entity.rb', line 3 def currency @currency end |
#value ⇒ Object
Returns the value of attribute value.
3 4 5 |
# File 'lib/light_currency_convert/currency_entity.rb', line 3 def value @value end |