Class: Bitfinex::Models::FundingCredit

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

Constant Summary collapse

BOOL_FIELDS =
['notify', 'hidden', 'renew', 'no_close']
FIELDS =
{
  :id => 0,
  :symbol => 1,
  :side => 2,
  :mts_create => 3,
  :mts_update => 4,
  :amount => 5,
  :flags => 6,
  :status => 7,
  :rate => 11,
  :period => 12,
  :mts_opening => 13,
  :mts_last_payout => 14,
  :notify => 15,
  :hidden => 16,
  :renew => 18,
  :rate_real => 19,
  :no_close => 20,
  :position_pair => 21
}

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#apply, #serialize

Constructor Details

#initialize(data) ⇒ FundingCredit

Returns a new instance of FundingCredit.



32
33
34
# File 'lib/models/funding_credit.rb', line 32

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

Class Method Details

.unserialize(data) ⇒ Object



36
37
38
# File 'lib/models/funding_credit.rb', line 36

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