Class: FeedSearcher::Page

Inherits:
Object
  • Object
show all
Defined in:
lib/feed_searcher/page.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(page) ⇒ Page

Returns a new instance of Page.



5
6
7
# File 'lib/feed_searcher/page.rb', line 5

def initialize(page)
  @page = page
end

Instance Attribute Details

#pageObject (readonly)

Returns the value of attribute page.



3
4
5
# File 'lib/feed_searcher/page.rb', line 3

def page
  @page
end

Instance Method Details

#feed_urlsObject



9
10
11
# File 'lib/feed_searcher/page.rb', line 9

def feed_urls
  feed_attributes.map {|attribute| attribute["href"] }
end