Class: Runners::ExecutionInfo
- Inherits:
-
Struct
- Object
- Struct
- Runners::ExecutionInfo
- Defined in:
- app/services/runners/execution_info.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#exit_code ⇒ Object
Returns the value of attribute exit_code.
-
#finished_at ⇒ Object
Returns the value of attribute finished_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#schedule_pending ⇒ Object
Returns the value of attribute schedule_pending.
-
#started_at ⇒ Object
Returns the value of attribute started_at.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
- #error? ⇒ Boolean
- #exited_without_completion_information? ⇒ Boolean
- #pending? ⇒ Boolean
- #running? ⇒ Boolean
- #schedule_pending? ⇒ Boolean
- #success? ⇒ Boolean
- #terminated? ⇒ Boolean
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error
6 7 8 |
# File 'app/services/runners/execution_info.rb', line 6 def error @error end |
#exit_code ⇒ Object
Returns the value of attribute exit_code
6 7 8 |
# File 'app/services/runners/execution_info.rb', line 6 def exit_code @exit_code end |
#finished_at ⇒ Object
Returns the value of attribute finished_at
6 7 8 |
# File 'app/services/runners/execution_info.rb', line 6 def finished_at @finished_at end |
#id ⇒ Object
Returns the value of attribute id
6 7 8 |
# File 'app/services/runners/execution_info.rb', line 6 def id @id end |
#schedule_pending ⇒ Object
Returns the value of attribute schedule_pending
6 7 8 |
# File 'app/services/runners/execution_info.rb', line 6 def schedule_pending @schedule_pending end |
#started_at ⇒ Object
Returns the value of attribute started_at
6 7 8 |
# File 'app/services/runners/execution_info.rb', line 6 def started_at @started_at end |
#status ⇒ Object
Returns the value of attribute status
6 7 8 |
# File 'app/services/runners/execution_info.rb', line 6 def status @status end |
Instance Method Details
#error? ⇒ Boolean
13 14 15 16 17 |
# File 'app/services/runners/execution_info.rb', line 13 def error? check_completion_information_available status == "error" end |
#exited_without_completion_information? ⇒ Boolean
31 32 33 |
# File 'app/services/runners/execution_info.rb', line 31 def exited_without_completion_information? status == "exited" end |
#pending? ⇒ Boolean
23 24 25 |
# File 'app/services/runners/execution_info.rb', line 23 def pending? status == "pending" end |
#running? ⇒ Boolean
19 20 21 |
# File 'app/services/runners/execution_info.rb', line 19 def running? status == "running" end |
#schedule_pending? ⇒ Boolean
35 36 37 |
# File 'app/services/runners/execution_info.rb', line 35 def schedule_pending? schedule_pending end |
#success? ⇒ Boolean
7 8 9 10 11 |
# File 'app/services/runners/execution_info.rb', line 7 def success? check_completion_information_available status == "success" end |
#terminated? ⇒ Boolean
27 28 29 |
# File 'app/services/runners/execution_info.rb', line 27 def terminated? exited_without_completion_information? || success? || error? end |