Class: Bitfinex::Models::Alert
Constant Summary collapse
- BOOL_FIELDS =
[]
- FIELDS =
{ :key => 0, :type => 1, :symbol => 2, :price => 3 }
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data) ⇒ Alert
constructor
A new instance of Alert.
Methods inherited from Model
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 |