Class: Minitest::Queue::ErrorReport
- Inherits:
-
Object
- Object
- Minitest::Queue::ErrorReport
- Defined in:
- lib/minitest/queue/error_report.rb
Class Attribute Summary collapse
-
.coder ⇒ Object
Returns the value of attribute coder.
Class Method Summary collapse
Instance Method Summary collapse
- #dump ⇒ Object
-
#initialize(data) ⇒ ErrorReport
constructor
A new instance of ErrorReport.
- #output ⇒ Object
- #test_and_module_name ⇒ Object
- #test_name ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(data) ⇒ ErrorReport
Returns a new instance of ErrorReport.
44 45 46 |
# File 'lib/minitest/queue/error_report.rb', line 44 def initialize(data) @data = data end |
Class Attribute Details
.coder ⇒ Object
Returns the value of attribute coder.
5 6 7 |
# File 'lib/minitest/queue/error_report.rb', line 5 def coder @coder end |
Class Method Details
.load(payload) ⇒ Object
7 8 9 |
# File 'lib/minitest/queue/error_report.rb', line 7 def load(payload) new(coder.load(payload)) end |
Instance Method Details
#dump ⇒ Object
48 49 50 |
# File 'lib/minitest/queue/error_report.rb', line 48 def dump self.class.coder.dump(@data) end |
#output ⇒ Object
64 65 66 |
# File 'lib/minitest/queue/error_report.rb', line 64 def output @data[:output] end |
#test_and_module_name ⇒ Object
56 57 58 |
# File 'lib/minitest/queue/error_report.rb', line 56 def test_and_module_name @data[:test_and_module_name] end |
#test_name ⇒ Object
52 53 54 |
# File 'lib/minitest/queue/error_report.rb', line 52 def test_name @data[:test_name] end |
#to_s ⇒ Object
60 61 62 |
# File 'lib/minitest/queue/error_report.rb', line 60 def to_s output end |