Class: Parklife::Reporter::Log
- Defined in:
- lib/parklife/reporter/log.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Parklife::Reporter::Base
Instance Method Details
#visit(route, response) ⇒ Object
7 8 9 10 |
# File 'lib/parklife/reporter/log.rb', line 7 def visit(route, response) status = response.status puts "#{colour(status, *STATUS_COLOUR[status])} #{route.path}" end |