Class: Teambox::TaskList
- Defined in:
- lib/teambox-client/models/task_list.rb
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#completed_at ⇒ Object
Time this task list was completed.
-
#finish_on ⇒ Object
Time this task list finished.
-
#start_on ⇒ Object
Time this task list commences.
-
#url ⇒ Object
:nodoc:.
- #user ⇒ Object
Methods inherited from Resource
#created_at, #destroy, #id, #initialize, #inspect, #method_missing, #next, #prev, #reload, #save, #updated_at
Methods included from ReferenceList
#generate_references, #get_or_make_reference, #get_or_make_references, #get_reference, #set_reference
Constructor Details
This class inherits a constructor from Teambox::Resource
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Teambox::Resource
Instance Method Details
#completed_at ⇒ Object
Time this task list was completed
18 19 20 |
# File 'lib/teambox-client/models/task_list.rb', line 18 def completed_at @data.has_key?('completed_at') ? Time.parse(data['completed_at']) : nil end |
#finish_on ⇒ Object
Time this task list finished
13 14 15 |
# File 'lib/teambox-client/models/task_list.rb', line 13 def finish_on @data.has_key?('finish_on') ? Time.parse(data['finish_on']) : nil end |
#start_on ⇒ Object
Time this task list commences
8 9 10 |
# File 'lib/teambox-client/models/task_list.rb', line 8 def start_on @data.has_key?('start_on') ? Time.parse(data['start_on']) : nil end |
#url ⇒ Object
:nodoc:
22 23 24 |
# File 'lib/teambox-client/models/task_list.rb', line 22 def url #:nodoc: "/task_lists/#{@data['id']}" end |
#user ⇒ Object
3 4 5 |
# File 'lib/teambox-client/models/task_list.rb', line 3 def user get_or_make_reference('User', @data, 'user_id') end |