Class: RSpec::Queue::ErrorReport
- Inherits:
-
Object
- Object
- RSpec::Queue::ErrorReport
- Defined in:
- lib/rspec/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
- #error_class ⇒ Object
-
#initialize(data) ⇒ ErrorReport
constructor
A new instance of ErrorReport.
- #output ⇒ Object
- #test_and_module_name ⇒ Object
- #test_file ⇒ Object
- #test_line ⇒ Object
- #test_name ⇒ Object
- #test_suite ⇒ Object
- #to_h ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(data) ⇒ ErrorReport
Returns a new instance of ErrorReport.
47 48 49 |
# File 'lib/rspec/queue/error_report.rb', line 47 def initialize(data) @data = data end |
Class Attribute Details
.coder ⇒ Object
Returns the value of attribute coder.
6 7 8 |
# File 'lib/rspec/queue/error_report.rb', line 6 def coder @coder end |
Class Method Details
.load(payload) ⇒ Object
8 9 10 |
# File 'lib/rspec/queue/error_report.rb', line 8 def load(payload) new(coder.load(payload)) end |
Instance Method Details
#dump ⇒ Object
51 52 53 |
# File 'lib/rspec/queue/error_report.rb', line 51 def dump self.class.coder.dump(@data) end |
#error_class ⇒ Object
59 60 61 |
# File 'lib/rspec/queue/error_report.rb', line 59 def error_class @data[:error_class] end |
#output ⇒ Object
87 88 89 |
# File 'lib/rspec/queue/error_report.rb', line 87 def output @data[:output] end |
#test_and_module_name ⇒ Object
63 64 65 |
# File 'lib/rspec/queue/error_report.rb', line 63 def test_and_module_name @data[:test_and_module_name] end |
#test_file ⇒ Object
71 72 73 |
# File 'lib/rspec/queue/error_report.rb', line 71 def test_file @data[:test_file] end |
#test_line ⇒ Object
75 76 77 |
# File 'lib/rspec/queue/error_report.rb', line 75 def test_line @data[:test_line] end |
#test_name ⇒ Object
55 56 57 |
# File 'lib/rspec/queue/error_report.rb', line 55 def test_name @data[:test_name] end |
#test_suite ⇒ Object
67 68 69 |
# File 'lib/rspec/queue/error_report.rb', line 67 def test_suite @data[:test_suite] end |
#to_h ⇒ Object
79 80 81 |
# File 'lib/rspec/queue/error_report.rb', line 79 def to_h @data end |
#to_s ⇒ Object
83 84 85 |
# File 'lib/rspec/queue/error_report.rb', line 83 def to_s output end |