Class: PageGlimpse::JsonParser
- Inherits:
-
Object
- Object
- PageGlimpse::JsonParser
- Defined in:
- lib/page_glimpse/json_parser.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(options = {}, &block) ⇒ JsonParser
constructor
A new instance of JsonParser.
- #parse(response) ⇒ Object
Constructor Details
#initialize(options = {}, &block) ⇒ JsonParser
Returns a new instance of JsonParser.
8 9 |
# File 'lib/page_glimpse/json_parser.rb', line 8 def initialize( = {}, &block) end |
Instance Method Details
#parse(response) ⇒ Object
11 12 13 |
# File 'lib/page_glimpse/json_parser.rb', line 11 def parse(response) JSON.parse response end |