Class: Minitest::Reporters::RedisReporter::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/minitest/reporters/redis_reporter.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Error

Returns a new instance of Error.



30
31
32
# File 'lib/minitest/reporters/redis_reporter.rb', line 30

def initialize(data)
  @data = data
end

Class Method Details

.load(payload) ⇒ Object



25
26
27
# File 'lib/minitest/reporters/redis_reporter.rb', line 25

def load(payload)
  Marshal.load(payload)
end

Instance Method Details

#dump ⇒ Object



34
35
36
# File 'lib/minitest/reporters/redis_reporter.rb', line 34

def dump
  Marshal.dump(self)
end

#output ⇒ Object



50
51
52
# File 'lib/minitest/reporters/redis_reporter.rb', line 50

def output
  @data[:output]
end

#test_and_module_name ⇒ Object



42
43
44
# File 'lib/minitest/reporters/redis_reporter.rb', line 42

def test_and_module_name
  @data[:test_and_module_name]
end

#test_name ⇒ Object



38
39
40
# File 'lib/minitest/reporters/redis_reporter.rb', line 38

def test_name
  @data[:test_name]
end

#to_s ⇒ Object



46
47
48
# File 'lib/minitest/reporters/redis_reporter.rb', line 46

def to_s
  output
end