Class: User

Inherits:
Object
  • Object
show all
Defined in:
lib/tunefish_client/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ User

Returns a new instance of User.



4
5
6
7
8
9
# File 'lib/tunefish_client/user.rb', line 4

def initialize(data)
  @name  = data["name"]
  @id    = data["id"]
  @photo = data["photo"]
  @activity_ids = data["activity_ids"]
end

Instance Attribute Details

#activity_idsObject (readonly)

Returns the value of attribute activity_ids.



2
3
4
# File 'lib/tunefish_client/user.rb', line 2

def activity_ids
  @activity_ids
end

#idObject (readonly)

Returns the value of attribute id.



2
3
4
# File 'lib/tunefish_client/user.rb', line 2

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



2
3
4
# File 'lib/tunefish_client/user.rb', line 2

def name
  @name
end

#photoObject (readonly)

Returns the value of attribute photo.



2
3
4
# File 'lib/tunefish_client/user.rb', line 2

def photo
  @photo
end