Class: WebPageParser::TheInterceptPageParserFactory
Constant Summary
collapse
- URL_RE =
ORegexp.new('firstlook.org/theintercept/[0-9]{4}/[0-9]{2}/[0-9]{2}/[a-z0-9-]+')
Class Method Summary
collapse
add_factory, #can_parse?, #create, factories, inherited, load, parser_for
Class Method Details
.can_parse?(options) ⇒ Boolean
4
5
6
|
# File 'lib/web-page-parser/parsers/the_intercept_page_parser.rb', line 4
def self.can_parse?(options)
URL_RE.match(options[:url])
end
|
.create(options = {}) ⇒ Object
8
9
10
|
# File 'lib/web-page-parser/parsers/the_intercept_page_parser.rb', line 8
def self.create(options = {})
TheInterceptPageParserV1.new(options)
end
|