Class: Bitfinex::Models::Alert

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

Constant Summary collapse

BOOL_FIELDS =
[]
FIELDS =
{
  :key => 0,
  :type => 1,
  :symbol => 2,
  :price => 3
}

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#apply, #serialize

Constructor Details

#initialize(data) ⇒ Alert

Returns a new instance of Alert.



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

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

Class Method Details

.unserialize(data) ⇒ Object



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

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