Class: Html2rss::Selectors::Context

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#configObject

Returns the value of attribute config

Returns:

  • (Object)

    the current value of config



23
24
25
# File 'lib/html2rss/selectors.rb', line 23

def config
  @config
end

#itemObject

Returns the value of attribute item

Returns:

  • (Object)

    the current value of item



23
24
25
# File 'lib/html2rss/selectors.rb', line 23

def item
  @item
end

#item_scopeObject

Returns the value of attribute item_scope

Returns:

  • (Object)

    the current value of item_scope



23
24
25
# File 'lib/html2rss/selectors.rb', line 23

def item_scope
  @item_scope
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



23
24
25
# File 'lib/html2rss/selectors.rb', line 23

def options
  @options
end

#scraperObject

Returns the value of attribute scraper

Returns:

  • (Object)

    the current value of scraper



23
24
25
# File 'lib/html2rss/selectors.rb', line 23

def scraper
  @scraper
end