Class: Parklife::Reporter::Base

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/parklife/reporter/base.rb

Direct Known Subclasses

Log, Null, Progress

Constant Summary collapse

STATUS_COLOUR =
{
  200 => :green,
  304 => :blue,
  404 => :yellow,
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(logger) ⇒ Base

Returns a new instance of Base.



17
18
19
# File 'lib/parklife/reporter/base.rb', line 17

def initialize(logger)
  @logger = logger
end

Instance Attribute Details

#loggerObject (readonly)

Returns the value of attribute logger.



15
16
17
# File 'lib/parklife/reporter/base.rb', line 15

def logger
  @logger
end

Instance Method Details

#finishObject



23
24
# File 'lib/parklife/reporter/base.rb', line 23

def finish
end

#visit(_route, _response) ⇒ Object



26
27
# File 'lib/parklife/reporter/base.rb', line 26

def visit(_route, _response)
end