Class: Bitfinex::Models::Wallet

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

Constant Summary collapse

BOOL_FIELDS =
[]
FIELDS =
{
  :type => 0,
  :currency => 1,
  :balance => 2,
  :unsettled_interest => 3,
  :balance_available => 4
}

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#apply, #serialize

Constructor Details

#initialize(data) ⇒ Wallet

Returns a new instance of Wallet.



19
20
21
# File 'lib/models/wallet.rb', line 19

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

Class Method Details

.unserialize(data) ⇒ Object



23
24
25
# File 'lib/models/wallet.rb', line 23

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