Class: Wunderlist::User

Inherits:
Object
  • Object
show all
Includes:
Helper
Defined in:
lib/wunderlist/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#apiObject

Returns the value of attribute api.



6
7
8
# File 'lib/wunderlist/user.rb', line 6

def api
  @api
end

#created_atObject

Returns the value of attribute created_at.



6
7
8
# File 'lib/wunderlist/user.rb', line 6

def created_at
  @created_at
end

#emailObject

Returns the value of attribute email.



6
7
8
# File 'lib/wunderlist/user.rb', line 6

def email
  @email
end

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/wunderlist/user.rb', line 6

def id
  @id
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/wunderlist/user.rb', line 6

def name
  @name
end