Class: Pageflow::Chart::Scraper
- Inherits:
-
Object
- Object
- Pageflow::Chart::Scraper
- Defined in:
- lib/pageflow/chart/scraper.rb
Instance Attribute Summary collapse
-
#document ⇒ Object
readonly
Returns the value of attribute document.
-
#javascript_urls ⇒ Object
readonly
Returns the value of attribute javascript_urls.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#stylesheet_urls ⇒ Object
readonly
Returns the value of attribute stylesheet_urls.
Instance Method Summary collapse
- #csv_url ⇒ Object
- #html ⇒ Object
-
#initialize(html, options = {}) ⇒ Scraper
constructor
A new instance of Scraper.
Constructor Details
#initialize(html, options = {}) ⇒ Scraper
Returns a new instance of Scraper.
8 9 10 11 12 13 14 |
# File 'lib/pageflow/chart/scraper.rb', line 8 def initialize(html, = {}) @document = Nokogiri::HTML(html) @options = parse rewrite end |
Instance Attribute Details
#document ⇒ Object (readonly)
Returns the value of attribute document.
6 7 8 |
# File 'lib/pageflow/chart/scraper.rb', line 6 def document @document end |
#javascript_urls ⇒ Object (readonly)
Returns the value of attribute javascript_urls.
6 7 8 |
# File 'lib/pageflow/chart/scraper.rb', line 6 def javascript_urls @javascript_urls end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/pageflow/chart/scraper.rb', line 6 def @options end |
#stylesheet_urls ⇒ Object (readonly)
Returns the value of attribute stylesheet_urls.
6 7 8 |
# File 'lib/pageflow/chart/scraper.rb', line 6 def stylesheet_urls @stylesheet_urls end |
Instance Method Details
#csv_url ⇒ Object
20 21 |
# File 'lib/pageflow/chart/scraper.rb', line 20 def csv_url end |
#html ⇒ Object
16 17 18 |
# File 'lib/pageflow/chart/scraper.rb', line 16 def html document.to_s end |