Class: Bitfinex::Models::FundingTrade

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

Constant Summary collapse

BOOL_FIELDS =
[]
FIELDS =
{
  :id => 0,
  :symbol => 1,
  :mts_create => 2,
  :offer_id => 3,
  :amount => 4,
  :rate => 5,
  :period => 6,
  :maker => 7
}

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#apply, #serialize

Constructor Details

#initialize(data) ⇒ FundingTrade

Returns a new instance of FundingTrade.



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

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

Class Method Details

.unserialize(data) ⇒ Object



26
27
28
# File 'lib/models/funding_trade.rb', line 26

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