Methods

Van::Units::Converter::ExchangeRate::CachedXMethods

Cached values for the XMethods exchange rate service.

Public Instance Methods

get_rate() click to toggle source

This is the only method that a subclass of ExchangeRate needs to implement. This is a good example to follow.

     # File lib/van/units/currency.rb, line 129
129:         def get_rate
130:           data[@curr]
131:         end

Private Instance Methods

data() click to toggle source
     # File lib/van/units/currency.rb, line 135
135:         def data
136:           @@data ||= eval(File.read(File.join(Units::Config::CONFIGDIR, 'xmethods', 'cached.rb')))
137:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.