Class: Html2rss::Selectors::Context
- Inherits:
-
Struct
- Object
- Struct
- Html2rss::Selectors::Context
- Defined in:
- lib/html2rss/selectors.rb
Overview
A context instance passed to item extractors and post-processors.
When built via ItemScope#context_for, item_scope carries the per-item
extraction base_url for nested selects (e.g. Template).
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#item ⇒ Object
Returns the value of attribute item.
-
#item_scope ⇒ Object
Returns the value of attribute item_scope.
-
#options ⇒ Object
Returns the value of attribute options.
-
#scraper ⇒ Object
Returns the value of attribute scraper.
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config
23 24 25 |
# File 'lib/html2rss/selectors.rb', line 23 def config @config end |
#item ⇒ Object
Returns the value of attribute item
23 24 25 |
# File 'lib/html2rss/selectors.rb', line 23 def item @item end |
#item_scope ⇒ Object
Returns the value of attribute item_scope
23 24 25 |
# File 'lib/html2rss/selectors.rb', line 23 def item_scope @item_scope end |
#options ⇒ Object
Returns the value of attribute options
23 24 25 |
# File 'lib/html2rss/selectors.rb', line 23 def @options end |
#scraper ⇒ Object
Returns the value of attribute scraper
23 24 25 |
# File 'lib/html2rss/selectors.rb', line 23 def scraper @scraper end |