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
67 68 69 |
# File 'lib/forex/tabular_rates.rb', line 67 def string @string end |
Instance Method Details
#value ⇒ Object
converts the currency to it’s storage representation
70 71 72 |
# File 'lib/forex/tabular_rates.rb', line 70 def value converted == 0.0 ? nil : converted end |