class WebPageParser::NewYorkTimesPageParserFactory
Constants
- INVALID_URL_RE
- URL_RE
Public Class Methods
can_parse?(options)
click to toggle source
# File lib/web-page-parser/parsers/new_york_times_page_parser.rb, line 5 def self.can_parse?(options) return nil if INVALID_URL_RE.match(options[:url]) URL_RE.match(options[:url]) end
create(options = {})
click to toggle source
# File lib/web-page-parser/parsers/new_york_times_page_parser.rb, line 10 def self.create(options = {}) NewYorkTimesPageParserV2.new(options) end