Class: Supai::User
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_corporate ⇒ Object
Returns the value of attribute is_corporate.
Instance Method Summary collapse
-
#initialize(hash) ⇒ User
constructor
A new instance of User.
- #user_id=(val) ⇒ Object
Methods inherited from Resource
#as_json, attr_accessor, attr_collections, attr_objects, attr_timestamp_accessor, attributes, #inspect, #parse_collection, #parse_object, #parse_timestamp, #set_attribute, #set_attributes, #underscore
Constructor Details
#initialize(hash) ⇒ User
Returns a new instance of User.
5 6 7 |
# File 'lib/supai/user.rb', line 5 def initialize(hash) set_attributes(hash) end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/supai/user.rb', line 3 def id @id end |
#is_corporate ⇒ Object
Returns the value of attribute is_corporate.
3 4 5 |
# File 'lib/supai/user.rb', line 3 def is_corporate @is_corporate end |
Instance Method Details
#user_id=(val) ⇒ Object
9 10 11 |
# File 'lib/supai/user.rb', line 9 def user_id=(val) self.id = val end |