Class: Teamweek::Api::User
- Inherits:
-
Object
- Object
- Teamweek::Api::User
- Includes:
- HashConstructed
- Defined in:
- lib/teamweek/api/user.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#color ⇒ Object
Returns the value of attribute color.
-
#dummy ⇒ Object
Returns the value of attribute dummy.
-
#email ⇒ Object
Returns the value of attribute email.
-
#foreign_id ⇒ Object
Returns the value of attribute foreign_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#initials ⇒ Object
Returns the value of attribute initials.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes included from HashConstructed
Instance Method Summary collapse
Methods included from HashConstructed
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active.
12 13 14 |
# File 'lib/teamweek/api/user.rb', line 12 def active @active end |
#color ⇒ Object
Returns the value of attribute color.
10 11 12 |
# File 'lib/teamweek/api/user.rb', line 10 def color @color end |
#dummy ⇒ Object
Returns the value of attribute dummy.
8 9 10 |
# File 'lib/teamweek/api/user.rb', line 8 def dummy @dummy end |
#email ⇒ Object
Returns the value of attribute email.
7 8 9 |
# File 'lib/teamweek/api/user.rb', line 7 def email @email end |
#foreign_id ⇒ Object
Returns the value of attribute foreign_id.
11 12 13 |
# File 'lib/teamweek/api/user.rb', line 11 def foreign_id @foreign_id end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/teamweek/api/user.rb', line 5 def id @id end |
#initials ⇒ Object
Returns the value of attribute initials.
9 10 11 |
# File 'lib/teamweek/api/user.rb', line 9 def initials @initials end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/teamweek/api/user.rb', line 6 def name @name end |
Instance Method Details
#to_hash ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/teamweek/api/user.rb', line 14 def to_hash { id: id, name: name, email: email, dummy: dummy, initials: initials, color: color, active: active } end |