Class: Profiler::TestRunner::RunStore::Run
- Inherits:
-
Struct
- Object
- Struct
- Profiler::TestRunner::RunStore::Run
- Defined in:
- lib/profiler/test_runner/run_store.rb
Instance Attribute Summary collapse
-
#exit_code ⇒ Object
Returns the value of attribute exit_code.
-
#files ⇒ Object
Returns the value of attribute files.
-
#finished_at ⇒ Object
Returns the value of attribute finished_at.
-
#framework ⇒ Object
Returns the value of attribute framework.
-
#id ⇒ Object
Returns the value of attribute id.
-
#output_lines ⇒ Object
Returns the value of attribute output_lines.
-
#pid ⇒ Object
Returns the value of attribute pid.
-
#started_at ⇒ Object
Returns the value of attribute started_at.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#exit_code ⇒ Object
Returns the value of attribute exit_code
11 12 13 |
# File 'lib/profiler/test_runner/run_store.rb', line 11 def exit_code @exit_code end |
#files ⇒ Object
Returns the value of attribute files
11 12 13 |
# File 'lib/profiler/test_runner/run_store.rb', line 11 def files @files end |
#finished_at ⇒ Object
Returns the value of attribute finished_at
11 12 13 |
# File 'lib/profiler/test_runner/run_store.rb', line 11 def finished_at @finished_at end |
#framework ⇒ Object
Returns the value of attribute framework
11 12 13 |
# File 'lib/profiler/test_runner/run_store.rb', line 11 def framework @framework end |
#id ⇒ Object
Returns the value of attribute id
11 12 13 |
# File 'lib/profiler/test_runner/run_store.rb', line 11 def id @id end |
#output_lines ⇒ Object
Returns the value of attribute output_lines
11 12 13 |
# File 'lib/profiler/test_runner/run_store.rb', line 11 def output_lines @output_lines end |
#pid ⇒ Object
Returns the value of attribute pid
11 12 13 |
# File 'lib/profiler/test_runner/run_store.rb', line 11 def pid @pid end |
#started_at ⇒ Object
Returns the value of attribute started_at
11 12 13 |
# File 'lib/profiler/test_runner/run_store.rb', line 11 def started_at @started_at end |
#status ⇒ Object
Returns the value of attribute status
11 12 13 |
# File 'lib/profiler/test_runner/run_store.rb', line 11 def status @status end |
Instance Method Details
#to_h ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/profiler/test_runner/run_store.rb', line 12 def to_h super.merge( started_at: started_at&.iso8601, finished_at: finished_at&.iso8601, output: output_lines.join, duration: finished_at && started_at ? ((finished_at - started_at) * 1000).round(2) : nil ).except(:output_lines) end |