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.



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

#countObject

Returns the value of attribute count.



210
211
212
# File 'lib/nhkore/search_scraper.rb', line 210

def count
  @count
end

Returns the value of attribute rss_links.



211
212
213
# File 'lib/nhkore/search_scraper.rb', line 211

def rss_links
  @rss_links
end

#urlObject

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

Returns:

  • (Boolean)


222
223
224
# File 'lib/nhkore/search_scraper.rb', line 222

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