Class: Bitfinex::Models::PublicTrade

Inherits:
Model
  • Object
show all
Defined in:
lib/models/public_trade.rb

Constant Summary collapse

BOOL_FIELDS =
[]
FIELDS =
{
  :id => 0,
  :mts => 1,
  :amount => 2,
  :price => 3
}

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#apply, #serialize

Constructor Details

#initialize(data) ⇒ PublicTrade

Returns a new instance of PublicTrade.



18
19
20
# File 'lib/models/public_trade.rb', line 18

def initialize (data)
  super(data, FIELDS, BOOL_FIELDS)
end

Class Method Details

.unserialize(data) ⇒ Object



22
23
24
# File 'lib/models/public_trade.rb', line 22

def self.unserialize (data)
  return Model.unserialize(data, FIELDS, BOOL_FIELDS)
end