Class: User
- Inherits:
-
Object
- Object
- User
- Defined in:
- lib/tunefish_client/user.rb
Instance Attribute Summary collapse
-
#activity_ids ⇒ Object
readonly
Returns the value of attribute activity_ids.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#photo ⇒ Object
readonly
Returns the value of attribute photo.
Instance Method Summary collapse
-
#initialize(data) ⇒ User
constructor
A new instance of User.
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_ids ⇒ Object (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 |
#id ⇒ Object (readonly)
Returns the value of attribute id.
2 3 4 |
# File 'lib/tunefish_client/user.rb', line 2 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
2 3 4 |
# File 'lib/tunefish_client/user.rb', line 2 def name @name end |
#photo ⇒ Object (readonly)
Returns the value of attribute photo.
2 3 4 |
# File 'lib/tunefish_client/user.rb', line 2 def photo @photo end |