class Capwatch::Exchange

Public Class Methods

rate(symbol, value) click to toggle source
# File lib/capwatch/exchange.rb, line 13
def self.rate(symbol, value)
  @@rates[symbol] = value
end
rate_for(symbol) click to toggle source
# File lib/capwatch/exchange.rb, line 8
def self.rate_for(symbol)
  raise "No Exchange Rate for #{symbol}" if @@rates[symbol].nil?
  @@rates[symbol]
end
rates() click to toggle source
# File lib/capwatch/exchange.rb, line 17
def self.rates
  @@rates
end