Class: Parklife::Reporter::Base
- Inherits:
-
Object
- Object
- Parklife::Reporter::Base
- Extended by:
- Forwardable
- Defined in:
- lib/parklife/reporter/base.rb
Constant Summary collapse
- STATUS_COLOUR =
{ 200 => :green, 304 => :blue, 404 => :yellow, }
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
- #finish ⇒ Object
-
#initialize(logger) ⇒ Base
constructor
A new instance of Base.
- #visit(_route, _response) ⇒ Object
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
#logger ⇒ Object (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
#finish ⇒ Object
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 |