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