Class: RHACK::JsonPage

Inherits:
Page show all
Defined in:
lib/rhack/page.rb

Instance Attribute Summary

Attributes inherited from Page

#body, #curl, #curl_res, #data, #doc, #failed, #js, #loc, #res, #title

Instance Method Summary collapse

Methods inherited from Page

#at, #dict, #empty?, #eval_js, #eval_string, #expand_link, #failed?, #find, #flatten_dict, #form, #get_link, #get_links, #get_src, #get_srcs, #initialize, #inspect, #load_scripts, #map, #map_json, #process, #retry?, #size, #submit, #text, #texts, #to_html, #to_xml, #url, #utf!

Constructor Details

This class inherits a constructor from RHACK::Page

Instance Method Details

#parse(opts = {}) ⇒ Object

override this in a subclass MUST return self if successful MAY return false otherwise



558
559
560
561
# File 'lib/rhack/page.rb', line 558

def parse(opts={})
  parse_json opts
  self
end