class CoinSync::Importers::Bitcurex::HistoryEntry
Constants
- POLISH_TIMEZONE
Attributes
amount[RW]
date[RW]
fee[RW]
fee_currency[RW]
id[RW]
lp[RW]
market[RW]
price[RW]
total[RW]
type[RW]
Public Class Methods
new(line)
click to toggle source
# File lib/coinsync/importers/bitcurex.rb, line 20 def initialize(line) @lp = line[0].to_i @type = line[1] @date = POLISH_TIMEZONE.local_to_utc(Time.parse(line[2])) @market = FiatCurrency.new(line[3]) @amount = BigDecimal.new(line[4]) @price = BigDecimal.new(line[5].split(' ').first) @total = BigDecimal.new(line[6].split(' ').first) @fee = BigDecimal.new(line[7].split(' ').first) @fee_currency = line[7].split(' ').last @id = line[8].to_i end