Exchange rate retrieval service that uses a service from www.xmethods.com. See rubyurl.com/7uq.
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 96
96: def get_rate
97: driver.getRate(country_mapping[@curr], country_mapping[base])
98: rescue
99: p $!
100: puts $!.backtrace
101: nil
102: end
# File lib/van/units/currency.rb, line 114
114: def base
115: @@base ||= data[:base]
116: end
# File lib/van/units/currency.rb, line 110
110: def country_mapping
111: @@country_mapping ||= data[:mapping]
112: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.