Class: FeedSearcher::Page
- Inherits:
-
Object
- Object
- FeedSearcher::Page
- Defined in:
- lib/feed_searcher/page.rb
Instance Attribute Summary collapse
-
#page ⇒ Object
readonly
Returns the value of attribute page.
Instance Method Summary collapse
- #feed_urls ⇒ Object
-
#initialize(page) ⇒ Page
constructor
A new instance of Page.
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
#page ⇒ Object (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_urls ⇒ Object
9 10 11 |
# File 'lib/feed_searcher/page.rb', line 9 def feed_urls feed_attributes.map {|attribute| attribute["href"] } end |