Class: Governator::PageScraper

Inherits:
Object
  • Object
show all
Defined in:
lib/governator/page_scraper.rb

Direct Known Subclasses

BioPage, Panel

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#rawObject (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

#nbspObject



11
12
13
# File 'lib/governator/page_scraper.rb', line 11

def nbsp
  @_nbsp ||= Nokogiri::HTML(' ').text
end