Sha256: b35e3b2d8e7d661c250c6193e1913b1d64c14ebba832f66f62d45c84d03ba5cb

Contents?: true

Size: 205 Bytes

Versions: 12

Compression:

Stored size: 205 Bytes

Contents

module MtGox
  class Balance
    attr_accessor :currency, :amount

    def initialize(currency=nil, amount=nil)
      self.currency = currency.to_s.upcase
      self.amount = amount.to_f
    end
  end
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
mtgox-0.9.1 lib/mtgox/balance.rb
mtgox-0.9.0 lib/mtgox/balance.rb
mtgox-0.8.2 lib/mtgox/balance.rb
mtgox-0.8.1 lib/mtgox/balance.rb
mtgox-0.8.0 lib/mtgox/balance.rb
mtgox-0.7.5 lib/mtgox/balance.rb
mtgox-0.7.4 lib/mtgox/balance.rb
mtgox-0.7.3 lib/mtgox/balance.rb
mt_gox-0.7.3 lib/mtgox/balance.rb
mtgox-0.7.2 lib/mtgox/balance.rb
mtgox-0.7.1 lib/mtgox/balance.rb
mtgox-0.7.0 lib/mtgox/balance.rb