Cached values for the XMethods exchange rate service.
Methods
Public Instance methods
This is the only method that a subclass of ExchangeRate needs to implement. This is a good example to follow.
[ show source ]
# File lib/facets/more/units.rb, line 443 def get_rate data[@curr] end
Private Instance methods
[ show source ]
# File lib/facets/more/units.rb, line 449 def data @@data ||= YAML.load_file(File.join(Units::Config::DATADIR, 'xmethods', 'cached.yaml')) end