Exception: NewsScraper::Transformers::ScrapePatternNotDefined
- Inherits:
-
StandardError
- Object
- StandardError
- NewsScraper::Transformers::ScrapePatternNotDefined
- Defined in:
- lib/news_scraper/errors.rb
Instance Attribute Summary collapse
-
#root_domain ⇒ Object
readonly
Returns the value of attribute root_domain.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ ScrapePatternNotDefined
constructor
A new instance of ScrapePatternNotDefined.
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_domain ⇒ Object (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 |
#url ⇒ Object (readonly)
Returns the value of attribute url.
16 17 18 |
# File 'lib/news_scraper/errors.rb', line 16 def url @url end |