Class: LightCurrencyConverter::CurrencyEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/light_currency_convert/currency_entity.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#currencyObject

Returns the value of attribute currency.



3
4
5
# File 'lib/light_currency_convert/currency_entity.rb', line 3

def currency
  @currency
end

#valueObject

Returns the value of attribute value.



3
4
5
# File 'lib/light_currency_convert/currency_entity.rb', line 3

def value
  @value
end