Class: Wunderlist::Subtask
- Inherits:
-
Object
- Object
- Wunderlist::Subtask
- Includes:
- Helper
- Defined in:
- lib/wunderlist/subtask.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
Returns the value of attribute api.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#created_by_id ⇒ Object
Returns the value of attribute created_by_id.
-
#id ⇒ Object
Returns the value of attribute id.
-
#revision ⇒ Object
Returns the value of attribute revision.
-
#task_id ⇒ Object
Returns the value of attribute task_id.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Subtask
constructor
A new instance of Subtask.
Methods included from Helper
#create, #destroy, #model_name, #path, #plural_model_name, #resource_path, #save, #to_hash, #update
Constructor Details
#initialize(attrs = {}) ⇒ Subtask
Returns a new instance of Subtask.
10 11 12 13 14 15 16 17 18 |
# File 'lib/wunderlist/subtask.rb', line 10 def initialize(attrs = {}) @id = attrs['id'] @api = attrs['api'] @task_id = attrs['task_id'] @created_at = attrs['created_at'] @created_by_id = attrs['created_by_id'] @revision = attrs['revision'] @title = attrs['title'] end |
Instance Attribute Details
#api ⇒ Object
Returns the value of attribute api.
8 9 10 |
# File 'lib/wunderlist/subtask.rb', line 8 def api @api end |
#created_at ⇒ Object
Returns the value of attribute created_at.
8 9 10 |
# File 'lib/wunderlist/subtask.rb', line 8 def created_at @created_at end |
#created_by_id ⇒ Object
Returns the value of attribute created_by_id.
8 9 10 |
# File 'lib/wunderlist/subtask.rb', line 8 def created_by_id @created_by_id end |
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'lib/wunderlist/subtask.rb', line 8 def id @id end |
#revision ⇒ Object
Returns the value of attribute revision.
8 9 10 |
# File 'lib/wunderlist/subtask.rb', line 8 def revision @revision end |
#task_id ⇒ Object
Returns the value of attribute task_id.
8 9 10 |
# File 'lib/wunderlist/subtask.rb', line 8 def task_id @task_id end |
#title ⇒ Object
Returns the value of attribute title.
8 9 10 |
# File 'lib/wunderlist/subtask.rb', line 8 def title @title end |