Class: RubyPocket::WebPage
- Inherits:
-
Object
- Object
- RubyPocket::WebPage
- Defined in:
- lib/ruby_pocket/web_page.rb
Instance Method Summary collapse
-
#initialize(url, scrapper = nil) ⇒ WebPage
constructor
A new instance of WebPage.
- #title ⇒ Object
Constructor Details
#initialize(url, scrapper = nil) ⇒ WebPage
Returns a new instance of WebPage.
9 10 11 |
# File 'lib/ruby_pocket/web_page.rb', line 9 def initialize(url, scrapper = nil) fetch_page url, scrapper end |
Instance Method Details
#title ⇒ Object
13 14 15 |
# File 'lib/ruby_pocket/web_page.rb', line 13 def title @page.title end |