Sha256: 767e046f67215e189fe6ee4473dc049e92edb77c5278403d8f20feb6b366b941
Contents?: true
Size: 403 Bytes
Versions: 1
Compression:
Stored size: 403 Bytes
Contents
require 'danconia/exchange' module Danconia class << self def config @config ||= Config.new end def config= c @config = c end def configure yield config end end class Config attr_accessor :default_currency, :default_exchange def initialize @default_currency = 'USD' @default_exchange = Exchanges::FixedRates.new end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
danconia-0.2.1 | lib/danconia/config.rb |