Class: Bitfinex::Models::FundingLoan
- Defined in:
- lib/models/funding_loan.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 }
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data) ⇒ FundingLoan
constructor
A new instance of FundingLoan.
Methods inherited from Model
Constructor Details
#initialize(data) ⇒ FundingLoan
Returns a new instance of FundingLoan.
31 32 33 |
# File 'lib/models/funding_loan.rb', line 31 def initialize (data) super(data, FIELDS, BOOL_FIELDS) end |
Class Method Details
.unserialize(data) ⇒ Object
35 36 37 |
# File 'lib/models/funding_loan.rb', line 35 def self.unserialize (data) return Model.unserialize(data, FIELDS, BOOL_FIELDS) end |