Class: NibblerJSON

Inherits:
Nibbler show all
Defined in:
lib/nibbler/json.rb

Overview

a scraper that works with JsonDocument

Instance Attribute Summary

Attributes inherited from Nibbler

#doc

Class Method Summary collapse

Methods inherited from Nibbler

element, elements, #initialize, parse, #parse, #to_hash

Constructor Details

This class inherits a constructor from Nibbler

Class Method Details

.convert_document(doc) ⇒ Object



26
27
28
# File 'lib/nibbler/json.rb', line 26

def self.convert_document(doc)
  Nibbler::JsonDocument[doc]
end