Class: NHKore::NextPage

Inherits:
Object
  • Object
show all
Defined in:
lib/nhkore/search_scraper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNextPage

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

#countObject

Returns the value of attribute count.



219
220
221
# File 'lib/nhkore/search_scraper.rb', line 219

def count
  @count
end

Returns the value of attribute rss_links.



220
221
222
# File 'lib/nhkore/search_scraper.rb', line 220

def rss_links
  @rss_links
end

#urlObject

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

Returns:

  • (Boolean)


231
232
233
# File 'lib/nhkore/search_scraper.rb', line 231

def empty?
  return @url.nil? || @count < 0
end