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