class Grubby::JsonParser
Attributes
json[R]
The parsed JSON data.
@return [Hash, Array]
mech[RW]
The Mechanize
agent used to make the request.
@return [Mechanize, nil]
Public Class Methods
new(uri = nil, response = nil, body = nil, code = nil, mech = nil)
click to toggle source
Calls superclass method
# File lib/grubby/json_parser.rb, line 13 def initialize(uri = nil, response = nil, body = nil, code = nil, mech = nil) @json = JSON.load(body, nil, create_additions: false) @mech = mech super(uri, response, body, code) end