Class: LittleGhost::Assembly::Attempt
- Inherits:
-
Data
- Object
- Data
- LittleGhost::Assembly::Attempt
- Defined in:
- lib/little_ghost/assembly_execution.rb
Overview
One attempt to execute an assembly step.
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#finished_at ⇒ Object
readonly
Returns the value of attribute finished_at.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#started_at ⇒ Object
readonly
Returns the value of attribute started_at.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#usage ⇒ Object
readonly
Returns the value of attribute usage.
Instance Method Summary collapse
-
#initialize(number:, status:, started_at:, finished_at:, usage: Usage.new, error: nil) ⇒ Attempt
constructor
A new instance of Attempt.
Constructor Details
#initialize(number:, status:, started_at:, finished_at:, usage: Usage.new, error: nil) ⇒ Attempt
Returns a new instance of Attempt.
13 14 15 |
# File 'lib/little_ghost/assembly_execution.rb', line 13 def initialize(number:, status:, started_at:, finished_at:, usage: Usage.new, error: nil) super(number:, status: status.to_sym, started_at:, finished_at:, usage:, error: error&.to_s&.freeze) end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error
12 13 14 |
# File 'lib/little_ghost/assembly_execution.rb', line 12 def error @error end |
#finished_at ⇒ Object (readonly)
Returns the value of attribute finished_at
12 13 14 |
# File 'lib/little_ghost/assembly_execution.rb', line 12 def finished_at @finished_at end |
#number ⇒ Object (readonly)
Returns the value of attribute number
12 13 14 |
# File 'lib/little_ghost/assembly_execution.rb', line 12 def number @number end |
#started_at ⇒ Object (readonly)
Returns the value of attribute started_at
12 13 14 |
# File 'lib/little_ghost/assembly_execution.rb', line 12 def started_at @started_at end |
#status ⇒ Object (readonly)
Returns the value of attribute status
12 13 14 |
# File 'lib/little_ghost/assembly_execution.rb', line 12 def status @status end |
#usage ⇒ Object (readonly)
Returns the value of attribute usage
12 13 14 |
# File 'lib/little_ghost/assembly_execution.rb', line 12 def usage @usage end |