Class: HttpReader::BasePageParser
- Inherits:
-
Object
- Object
- HttpReader::BasePageParser
- Defined in:
- lib/http_reader/base_page_parser.rb
Direct Known Subclasses
Class Attribute Summary collapse
-
.pattern ⇒ Object
readonly
Returns the value of attribute pattern.
Class Method Summary collapse
- .browse_actions_for_html(browser, opts = {}) ⇒ Object
- .match(url) ⇒ Object
- .parse(response, opts = {}) ⇒ Object
- .use_browser ⇒ Object
Class Attribute Details
.pattern ⇒ Object (readonly)
Returns the value of attribute pattern.
6 7 8 |
# File 'lib/http_reader/base_page_parser.rb', line 6 def pattern @pattern end |
Class Method Details
.browse_actions_for_html(browser, opts = {}) ⇒ Object
16 17 |
# File 'lib/http_reader/base_page_parser.rb', line 16 def browse_actions_for_html(browser, opts = {}) end |
.match(url) ⇒ Object
8 9 10 |
# File 'lib/http_reader/base_page_parser.rb', line 8 def match(url) !(url =~ pattern).nil? end |
.parse(response, opts = {}) ⇒ Object
12 13 14 |
# File 'lib/http_reader/base_page_parser.rb', line 12 def parse(response, opts = {}) response.body end |
.use_browser ⇒ Object
19 20 21 |
# File 'lib/http_reader/base_page_parser.rb', line 19 def use_browser false end |