Class: Todoist::Comment
- Inherits:
-
Struct
- Object
- Struct
- Todoist::Comment
- Includes:
- StructCleanup
- Defined in:
- lib/todoist/comment.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#file_attachment ⇒ Object
Returns the value of attribute file_attachment.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_deleted ⇒ Object
Returns the value of attribute is_deleted.
-
#item_id ⇒ Object
(also: #task_id)
Returns the value of attribute item_id.
-
#jsw_ignored_keys ⇒ Object
Returns the value of attribute jsw_ignored_keys.
-
#posted_at ⇒ Object
Returns the value of attribute posted_at.
-
#posted_uid ⇒ Object
Returns the value of attribute posted_uid.
-
#project_id ⇒ Object
Returns the value of attribute project_id.
-
#reactions ⇒ Object
Returns the value of attribute reactions.
-
#uids_to_notify ⇒ Object
Returns the value of attribute uids_to_notify.
Instance Method Summary collapse
- #deleted? ⇒ Boolean
- #file_attachment? ⇒ Boolean (also: #attachment?)
-
#initialize(*arg_hashes) ⇒ Comment
constructor
A new instance of Comment.
Methods included from StructCleanup
#fields_to_date_time, #ignore_undefined_keys, #properties_to_desc, #replace_keys
Constructor Details
#initialize(*arg_hashes) ⇒ Comment
Returns a new instance of Comment.
18 19 20 21 22 23 |
# File 'lib/todoist/comment.rb', line 18 def initialize(*arg_hashes) args = arg_hashes.first fields_to_date_time(args, %w[posted_at]) ignore_undefined_keys(args) super end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content
2 3 4 |
# File 'lib/todoist/comment.rb', line 2 def content @content end |
#file_attachment ⇒ Object
Returns the value of attribute file_attachment
2 3 4 |
# File 'lib/todoist/comment.rb', line 2 def @file_attachment end |
#id ⇒ Object
Returns the value of attribute id
2 3 4 |
# File 'lib/todoist/comment.rb', line 2 def id @id end |
#is_deleted ⇒ Object
Returns the value of attribute is_deleted
2 3 4 |
# File 'lib/todoist/comment.rb', line 2 def is_deleted @is_deleted end |
#item_id ⇒ Object Also known as: task_id
Returns the value of attribute item_id
2 3 4 |
# File 'lib/todoist/comment.rb', line 2 def item_id @item_id end |
#jsw_ignored_keys ⇒ Object
Returns the value of attribute jsw_ignored_keys
2 3 4 |
# File 'lib/todoist/comment.rb', line 2 def jsw_ignored_keys @jsw_ignored_keys end |
#posted_at ⇒ Object
Returns the value of attribute posted_at
2 3 4 |
# File 'lib/todoist/comment.rb', line 2 def posted_at @posted_at end |
#posted_uid ⇒ Object
Returns the value of attribute posted_uid
2 3 4 |
# File 'lib/todoist/comment.rb', line 2 def posted_uid @posted_uid end |
#project_id ⇒ Object
Returns the value of attribute project_id
2 3 4 |
# File 'lib/todoist/comment.rb', line 2 def project_id @project_id end |
#reactions ⇒ Object
Returns the value of attribute reactions
2 3 4 |
# File 'lib/todoist/comment.rb', line 2 def reactions @reactions end |
#uids_to_notify ⇒ Object
Returns the value of attribute uids_to_notify
2 3 4 |
# File 'lib/todoist/comment.rb', line 2 def uids_to_notify @uids_to_notify end |
Instance Method Details
#deleted? ⇒ Boolean
31 32 33 |
# File 'lib/todoist/comment.rb', line 31 def deleted? is_deleted.present? end |
#file_attachment? ⇒ Boolean Also known as: attachment?
27 28 29 |
# File 'lib/todoist/comment.rb', line 27 def .blank? end |