Exception: Qyu::Errors::TaskStatusUpdateFailed
- Defined in:
- lib/qyu/errors/task_status_update_failed.rb
Overview
Qyu::Errors::TaskStatusUpdateFailed
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#task_id ⇒ Object
readonly
Returns the value of attribute task_id.
Instance Method Summary collapse
-
#initialize(task_id, status) ⇒ TaskStatusUpdateFailed
constructor
A new instance of TaskStatusUpdateFailed.
Constructor Details
#initialize(task_id, status) ⇒ TaskStatusUpdateFailed
Returns a new instance of TaskStatusUpdateFailed.
8 9 10 11 12 |
# File 'lib/qyu/errors/task_status_update_failed.rb', line 8 def initialize(task_id, status) super("Task status cannot be updated task_id=#{task_id} status=#{status}.") @task_id = task_id @status = status end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
7 8 9 |
# File 'lib/qyu/errors/task_status_update_failed.rb', line 7 def status @status end |
#task_id ⇒ Object (readonly)
Returns the value of attribute task_id.
7 8 9 |
# File 'lib/qyu/errors/task_status_update_failed.rb', line 7 def task_id @task_id end |