Class: Bitfinex::Models::UserInfo

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

Constant Summary collapse

BOOL_FIELDS =
[]
FIELDS =
{
  :id => 0,
  :email => 1,
  :username => 2,
  :timezone => 7
}

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#apply, #serialize

Constructor Details

#initialize(data) ⇒ UserInfo

Returns a new instance of UserInfo.



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

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

Class Method Details

.unserialize(data) ⇒ Object



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

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