Sha256: 9f903d25c70477fc91aae159b1009e4a1e3631e757d7a4aeff2597e43167bee9

Contents?: true

Size: 374 Bytes

Versions: 1

Compression:

Stored size: 374 Bytes

Contents

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.2 lib/danconia/config.rb