Class: NHKore::NextPage
- Inherits:
-
Object
- Object
- NHKore::NextPage
- Defined in:
- lib/nhkore/search_scraper.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#rss_links ⇒ Object
Returns the value of attribute rss_links.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize ⇒ NextPage
constructor
A new instance of NextPage.
Constructor Details
#initialize ⇒ NextPage
Returns a new instance of NextPage.
214 215 216 217 218 219 220 |
# File 'lib/nhkore/search_scraper.rb', line 214 def initialize super @count = -1 @rss_links = nil @url = nil end |
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count.
210 211 212 |
# File 'lib/nhkore/search_scraper.rb', line 210 def count @count end |
#rss_links ⇒ Object
Returns the value of attribute rss_links.
211 212 213 |
# File 'lib/nhkore/search_scraper.rb', line 211 def rss_links @rss_links end |
#url ⇒ Object
Returns the value of attribute url.
212 213 214 |
# File 'lib/nhkore/search_scraper.rb', line 212 def url @url end |
Instance Method Details
#empty? ⇒ Boolean
222 223 224 |
# File 'lib/nhkore/search_scraper.rb', line 222 def empty? return @url.nil? || @count < 0 end |