Class: Governator::PageScraper
- Inherits:
-
Object
- Object
- Governator::PageScraper
- Defined in:
- lib/governator/page_scraper.rb
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
-
#initialize(raw) ⇒ PageScraper
constructor
A new instance of PageScraper.
- #nbsp ⇒ Object
Constructor Details
#initialize(raw) ⇒ PageScraper
Returns a new instance of PageScraper.
7 8 9 |
# File 'lib/governator/page_scraper.rb', line 7 def initialize(raw) @raw = raw end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
5 6 7 |
# File 'lib/governator/page_scraper.rb', line 5 def raw @raw end |
Instance Method Details
#nbsp ⇒ Object
11 12 13 |
# File 'lib/governator/page_scraper.rb', line 11 def nbsp @_nbsp ||= Nokogiri::HTML(' ').text end |