Class: Wunderlist::User
- Inherits:
-
Object
- Object
- Wunderlist::User
- Includes:
- Helper
- Defined in:
- lib/wunderlist/user.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
Returns the value of attribute api.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#email ⇒ Object
Returns the value of attribute email.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ User
constructor
A new instance of User.
Methods included from Helper
#create, #destroy, #model_name, #path, #plural_model_name, #resource_path, #save, #to_hash, #update
Constructor Details
#initialize(attrs = {}) ⇒ User
Returns a new instance of User.
8 9 10 11 12 13 |
# File 'lib/wunderlist/user.rb', line 8 def initialize(attrs = {}) @id = attrs['id'] @name = attrs['name'] @email = attrs['email'] @created_at = attrs['created_at'] end |
Instance Attribute Details
#api ⇒ Object
Returns the value of attribute api.
6 7 8 |
# File 'lib/wunderlist/user.rb', line 6 def api @api end |
#created_at ⇒ Object
Returns the value of attribute created_at.
6 7 8 |
# File 'lib/wunderlist/user.rb', line 6 def created_at @created_at end |
#email ⇒ Object
Returns the value of attribute email.
6 7 8 |
# File 'lib/wunderlist/user.rb', line 6 def email @email end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/wunderlist/user.rb', line 6 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/wunderlist/user.rb', line 6 def name @name end |