Class: Van::Units::Converter::ExchangeRate::CachedXMethods
- Inherits:
-
Van::Units::Converter::ExchangeRate
- Object
- Van::Units::Converter::ExchangeRate
- Van::Units::Converter::ExchangeRate::CachedXMethods
- Defined in:
- lib/van/units/currency.rb
Overview
Cached values for the XMethods exchange rate service.
Instance Method Summary collapse
-
#get_rate ⇒ Object
This is the only method that a subclass of ExchangeRate needs to implement.
Methods inherited from Van::Units::Converter::ExchangeRate
#*, #**, #+, #-, #/, #coerce, create_conversion, #initialize, #value
Constructor Details
This class inherits a constructor from Van::Units::Converter::ExchangeRate
Instance Method Details
#get_rate ⇒ Object
This is the only method that a subclass of ExchangeRate needs to implement. This is a good example to follow.
129 130 131 |
# File 'lib/van/units/currency.rb', line 129 def get_rate data[@curr] end |