Class: RubynCode::Tasks::Task
- Inherits:
-
Data
- Object
- Data
- RubynCode::Tasks::Task
- Defined in:
- lib/rubyn_code/tasks/models.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
-
#priority ⇒ Object
readonly
Returns the value of attribute priority.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#session_id ⇒ Object
readonly
Returns the value of attribute session_id.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Instance Method Summary collapse
- #blocked? ⇒ Boolean
- #completed? ⇒ Boolean
- #failed? ⇒ Boolean
- #in_progress? ⇒ Boolean
- #pending? ⇒ Boolean
- #to_h ⇒ Object
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at
5 6 7 |
# File 'lib/rubyn_code/tasks/models.rb', line 5 def created_at @created_at end |
#description ⇒ Object (readonly)
Returns the value of attribute description
5 6 7 |
# File 'lib/rubyn_code/tasks/models.rb', line 5 def description @description end |
#id ⇒ Object (readonly)
Returns the value of attribute id
5 6 7 |
# File 'lib/rubyn_code/tasks/models.rb', line 5 def id @id end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
5 6 7 |
# File 'lib/rubyn_code/tasks/models.rb', line 5 def @metadata end |
#owner ⇒ Object (readonly)
Returns the value of attribute owner
5 6 7 |
# File 'lib/rubyn_code/tasks/models.rb', line 5 def owner @owner end |
#priority ⇒ Object (readonly)
Returns the value of attribute priority
5 6 7 |
# File 'lib/rubyn_code/tasks/models.rb', line 5 def priority @priority end |
#result ⇒ Object (readonly)
Returns the value of attribute result
5 6 7 |
# File 'lib/rubyn_code/tasks/models.rb', line 5 def result @result end |
#session_id ⇒ Object (readonly)
Returns the value of attribute session_id
5 6 7 |
# File 'lib/rubyn_code/tasks/models.rb', line 5 def session_id @session_id end |
#status ⇒ Object (readonly)
Returns the value of attribute status
5 6 7 |
# File 'lib/rubyn_code/tasks/models.rb', line 5 def status @status end |
#title ⇒ Object (readonly)
Returns the value of attribute title
5 6 7 |
# File 'lib/rubyn_code/tasks/models.rb', line 5 def title @title end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at
5 6 7 |
# File 'lib/rubyn_code/tasks/models.rb', line 5 def updated_at @updated_at end |
Instance Method Details
#blocked? ⇒ Boolean
12 |
# File 'lib/rubyn_code/tasks/models.rb', line 12 def blocked? = status == 'blocked' |
#completed? ⇒ Boolean
11 |
# File 'lib/rubyn_code/tasks/models.rb', line 11 def completed? = status == 'completed' |
#failed? ⇒ Boolean
13 |
# File 'lib/rubyn_code/tasks/models.rb', line 13 def failed? = status == 'failed' |
#in_progress? ⇒ Boolean
10 |
# File 'lib/rubyn_code/tasks/models.rb', line 10 def in_progress? = status == 'in_progress' |
#pending? ⇒ Boolean
9 |
# File 'lib/rubyn_code/tasks/models.rb', line 9 def pending? = status == 'pending' |
#to_h ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/rubyn_code/tasks/models.rb', line 15 def to_h { id: id, session_id: session_id, title: title, description: description, status: status, priority: priority, owner: owner, result: result, metadata: , created_at: created_at, updated_at: updated_at } end |