class WebPageParser::WashingtonPostPageParserFactory

Constants

URL_RE

Public Class Methods

can_parse?(options) click to toggle source
# File lib/web-page-parser/parsers/washingtonpost_page_parser.rb, line 4
def self.can_parse?(options)
  url = options[:url].split('#').first
  URL_RE.match(url)
end
create(options = {}) click to toggle source
# File lib/web-page-parser/parsers/washingtonpost_page_parser.rb, line 9
def self.create(options = {})
  WashingtonPostPageParserV1.new(options)
end