Class: Bitfinex::Models::Movement

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

Constant Summary collapse

BOOL_FIELDS =
[]
FIELDS =
{
  :id => 0,
  :currency => 1,
  :currency_name => 2,
  :mts_started => 5,
  :mts_updated => 6,
  :status => 9,
  :amount => 12,
  :fees => 13,
  :destination_address => 16,
  :transaction_id => 20
}

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#apply, #serialize

Constructor Details

#initialize(data) ⇒ Movement

Returns a new instance of Movement.



24
25
26
# File 'lib/models/movement.rb', line 24

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

Class Method Details

.unserialize(data) ⇒ Object



28
29
30
# File 'lib/models/movement.rb', line 28

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