Class: Parklife::Reporter::Log

Inherits:
Base
  • Object
show all
Defined in:
lib/parklife/reporter/log.rb

Constant Summary

Constants inherited from Base

Base::STATUS_COLOUR

Instance Attribute Summary

Attributes inherited from Base

#logger

Instance Method Summary collapse

Methods inherited from Base

#finish, #initialize

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