Class: Bitfinex::Models::Currency

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

Constant Summary collapse

BOOL_FIELDS =
[]
FIELDS =
{
  :id => 0,
  :name => 1,
  :pool => 2,
  :explorer => 3
}

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#apply, #serialize

Constructor Details

#initialize(data) ⇒ Currency

Returns a new instance of Currency.



18
19
20
# File 'lib/models/currency.rb', line 18

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

Class Method Details

.unserialize(data) ⇒ Object



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

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