class CoinSync::Importers::BitstampCSV::HistoryEntry
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/bitstamp_csv.rb, line 17 def initialize(line) @type = line[0] @date = Time.parse(line[1]) @account = line[2] @lp = line[0].to_i @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