Class: PerformanceTester::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/performance_tester/logger.rb

Overview

Base logger with a stub log method

Direct Known Subclasses

CsvLogger, PutsAggregateLogger

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(run_name, outcome, options = {}) ⇒ Logger

Returns a new instance of Logger.



24
25
26
27
28
# File 'lib/performance_tester/logger.rb', line 24

def initialize(run_name, outcome, options = {})
  @run_name = run_name
  @outcome = outcome
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



22
23
24
# File 'lib/performance_tester/logger.rb', line 22

def options
  @options
end

#outcomeObject (readonly)

Returns the value of attribute outcome.



22
23
24
# File 'lib/performance_tester/logger.rb', line 22

def outcome
  @outcome
end

#run_nameObject (readonly)

Returns the value of attribute run_name.



22
23
24
# File 'lib/performance_tester/logger.rb', line 22

def run_name
  @run_name
end

Instance Method Details

#logObject



30
31
# File 'lib/performance_tester/logger.rb', line 30

def log
end