Class: CoinSync::Importers::ArkVoting::HistoryEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/coinsync/importers/ark_voting.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ HistoryEntry

Returns a new instance of HistoryEntry.



25
26
27
28
# File 'lib/coinsync/importers/ark_voting.rb', line 25

def initialize(hash)
  @timestamp = EPOCH_TIME + hash['timestamp']
  @amount = BigDecimal.new(hash['amount']) / 100_000_000
end

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



23
24
25
# File 'lib/coinsync/importers/ark_voting.rb', line 23

def amount
  @amount
end

#timestampObject

Returns the value of attribute timestamp.



23
24
25
# File 'lib/coinsync/importers/ark_voting.rb', line 23

def timestamp
  @timestamp
end