Class: EolclubScraper::Homepage
- Inherits:
-
Object
- Object
- EolclubScraper::Homepage
- Defined in:
- lib/eolclub_scraper/homepage.rb
Instance Method Summary collapse
- #content ⇒ Object
-
#initialize(url = 'http://eolclub.org/') ⇒ Homepage
constructor
A new instance of Homepage.
Constructor Details
#initialize(url = 'http://eolclub.org/') ⇒ Homepage
Returns a new instance of Homepage.
6 7 8 |
# File 'lib/eolclub_scraper/homepage.rb', line 6 def initialize(url='http://eolclub.org/') @url = url end |
Instance Method Details
#content ⇒ Object
10 11 12 |
# File 'lib/eolclub_scraper/homepage.rb', line 10 def content open(@url).read end |