Class: Bitfinex::Models::Notification

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

Constant Summary collapse

BOOL_FIELDS =
[]
FIELDS =
{
  :mts => 0,
  :type => 1,
  :message_id => 2,
  :notify_info => 4,
  :code => 5,
  :status => 6,
  :text => 7
}

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#apply, #serialize

Constructor Details

#initialize(data) ⇒ Notification

Returns a new instance of Notification.



21
22
23
# File 'lib/models/notification.rb', line 21

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

Class Method Details

.unserialize(data) ⇒ Object



25
26
27
# File 'lib/models/notification.rb', line 25

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