Class: Parklife::Responder::Ok

Inherits:
Base
  • Object
show all
Defined in:
lib/parklife/responder/ok.rb

Instance Attribute Summary

Attributes inherited from Base

#crawler

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Parklife::Responder::Base

Instance Method Details

#call(route, response) ⇒ Object



7
8
9
10
# File 'lib/parklife/responder/ok.rb', line 7

def call(route, response)
  crawler.build.add(route, response)
  crawler.crawl(response.body) if route.crawl
end