Class: Scruber::Core::PageFormat::Json

Inherits:
Base show all
Defined in:
lib/scruber/core/page_format/json.rb

Class Method Summary collapse

Class Method Details

.process(page) ⇒ Object



5
6
7
# File 'lib/scruber/core/page_format/json.rb', line 5

def self.process(page)
  JSON.parse(page.response_body) rescue nil
end