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.
223 224 225 226 227 228 229 |
# File 'lib/nhkore/search_scraper.rb', line 223 def initialize super @count = -1 @rss_links = nil @url = nil end |
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count.
219 220 221 |
# File 'lib/nhkore/search_scraper.rb', line 219 def count @count end |
#rss_links ⇒ Object
Returns the value of attribute rss_links.
220 221 222 |
# File 'lib/nhkore/search_scraper.rb', line 220 def rss_links @rss_links end |
#url ⇒ Object
Returns the value of attribute url.
221 222 223 |
# File 'lib/nhkore/search_scraper.rb', line 221 def url @url end |
Instance Method Details
#empty? ⇒ Boolean
231 232 233 |
# File 'lib/nhkore/search_scraper.rb', line 231 def empty? return @url.nil? || @count < 0 end |