Class: Forex::Currency
- Inherits:
-
Struct
- Object
- Struct
- Forex::Currency
- Defined in:
- lib/forex/tabular_rates.rb
Instance Attribute Summary collapse
-
#string ⇒ Object
Returns the value of attribute string.
Instance Method Summary collapse
-
#value ⇒ Object
converts the currency to it’s storage representation.
Instance Attribute Details
#string ⇒ Object
Returns the value of attribute string
68 69 70 |
# File 'lib/forex/tabular_rates.rb', line 68 def string @string end |
Instance Method Details
#value ⇒ Object
converts the currency to it’s storage representation
71 72 73 |
# File 'lib/forex/tabular_rates.rb', line 71 def value converted == 0.0 ? nil : converted end |