Permalink
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (10 sloc) 243 Bytes
require 'bigdecimal'
module MtGox
class Balance
attr_accessor :currency, :amount
def initialize(currency = nil, amount = nil)
self.currency = currency.to_s.upcase
self.amount = BigDecimal(amount.to_s)
end
end
end