Class: CemAcpt::TestRunner::LogFormatter::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/cem_acpt/test_runner/log_formatter/base.rb

Overview

Base class for log formatters

Constant Summary collapse

INDENT =
'  '

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(subject = nil) ⇒ Base

Returns a new instance of Base.



12
13
14
# File 'lib/cem_acpt/test_runner/log_formatter/base.rb', line 12

def initialize(subject = nil)
  @subject = subject
end

Instance Attribute Details

#subjectObject

Returns the value of attribute subject.



10
11
12
# File 'lib/cem_acpt/test_runner/log_formatter/base.rb', line 10

def subject
  @subject
end

Instance Method Details

#host_name(response = nil) ⇒ Object



32
33
34
# File 'lib/cem_acpt/test_runner/log_formatter/base.rb', line 32

def host_name(response = nil)
  register_response(response)
end

#inspectObject



16
17
18
# File 'lib/cem_acpt/test_runner/log_formatter/base.rb', line 16

def inspect
  to_s
end

#results(response = nil) ⇒ Object



28
29
30
# File 'lib/cem_acpt/test_runner/log_formatter/base.rb', line 28

def results(response = nil)
  register_response(response)
end

#summary(response = nil) ⇒ Object



24
25
26
# File 'lib/cem_acpt/test_runner/log_formatter/base.rb', line 24

def summary(response = nil)
  register_response(response)
end

#test_name(response = nil) ⇒ Object



36
37
38
# File 'lib/cem_acpt/test_runner/log_formatter/base.rb', line 36

def test_name(response = nil)
  register_response(response)
end

#to_sObject



20
21
22
# File 'lib/cem_acpt/test_runner/log_formatter/base.rb', line 20

def to_s
  "#<#{self.class.name}:0x#{object_id.to_s(16)}>"
end