Exception: NewsScraper::Transformers::ScrapePatternNotDefined

Inherits:
StandardError
  • Object
show all
Defined in:
lib/news_scraper/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ ScrapePatternNotDefined

Returns a new instance of ScrapePatternNotDefined.



18
19
20
21
22
# File 'lib/news_scraper/errors.rb', line 18

def initialize(opts = {})
  @root_domain = opts[:root_domain]
  @url = opts[:url]
  super
end

Instance Attribute Details

#root_domainObject (readonly)

Returns the value of attribute root_domain.



16
17
18
# File 'lib/news_scraper/errors.rb', line 16

def root_domain
  @root_domain
end

#urlObject (readonly)

Returns the value of attribute url.



16
17
18
# File 'lib/news_scraper/errors.rb', line 16

def url
  @url
end