Class: Bitfinex::Models::PublicTrade
- Defined in:
- lib/models/public_trade.rb
Constant Summary collapse
- BOOL_FIELDS =
[]
- FIELDS =
{ :id => 0, :mts => 1, :amount => 2, :price => 3 }
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data) ⇒ PublicTrade
constructor
A new instance of PublicTrade.
Methods inherited from Model
Constructor Details
#initialize(data) ⇒ PublicTrade
Returns a new instance of PublicTrade.
18 19 20 |
# File 'lib/models/public_trade.rb', line 18 def initialize (data) super(data, FIELDS, BOOL_FIELDS) end |
Class Method Details
.unserialize(data) ⇒ Object
22 23 24 |
# File 'lib/models/public_trade.rb', line 22 def self.unserialize (data) return Model.unserialize(data, FIELDS, BOOL_FIELDS) end |