Class: Minitest::Reporters::RedisReporter::Error
- Inherits:
-
Object
- Object
- Minitest::Reporters::RedisReporter::Error
- Defined in:
- lib/minitest/reporters/redis_reporter.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) ⇒ Error
constructor
A new instance of Error.
- #output ⇒ Object
- #test_and_module_name ⇒ Object
- #test_name ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(data) ⇒ Error
Returns a new instance of Error.
64 65 66 |
# File 'lib/minitest/reporters/redis_reporter.rb', line 64 def initialize(data) @data = data end |
Class Attribute Details
.coder ⇒ Object
Returns the value of attribute coder.
25 26 27 |
# File 'lib/minitest/reporters/redis_reporter.rb', line 25 def coder @coder end |
Class Method Details
.load(payload) ⇒ Object
27 28 29 |
# File 'lib/minitest/reporters/redis_reporter.rb', line 27 def load(payload) new(coder.load(payload)) end |
Instance Method Details
#dump ⇒ Object
68 69 70 |
# File 'lib/minitest/reporters/redis_reporter.rb', line 68 def dump self.class.coder.dump(@data) end |
#output ⇒ Object
84 85 86 |
# File 'lib/minitest/reporters/redis_reporter.rb', line 84 def output @data[:output] end |
#test_and_module_name ⇒ Object
76 77 78 |
# File 'lib/minitest/reporters/redis_reporter.rb', line 76 def test_and_module_name @data[:test_and_module_name] end |
#test_name ⇒ Object
72 73 74 |
# File 'lib/minitest/reporters/redis_reporter.rb', line 72 def test_name @data[:test_name] end |
#to_s ⇒ Object
80 81 82 |
# File 'lib/minitest/reporters/redis_reporter.rb', line 80 def to_s output end |