Class: RubyPocket::WebPage

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_pocket/web_page.rb

Instance Method Summary collapse

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

#titleObject



13
14
15
# File 'lib/ruby_pocket/web_page.rb', line 13

def title
  @page.title
end