Class: NHKore::NextPage

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

Overview

Author:

  • Jonathan Bradley Whited

Since:

  • 0.2.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNextPage

Returns a new instance of NextPage.

Since:

  • 0.2.0



204
205
206
207
208
209
210
# File 'lib/nhkore/search_scraper.rb', line 204

def initialize
  super()

  @count = -1
  @rss_links = nil
  @url = nil
end

Instance Attribute Details

#countObject

Since:

  • 0.2.0



200
201
202
# File 'lib/nhkore/search_scraper.rb', line 200

def count
  @count
end

Since:

  • 0.2.0



201
202
203
# File 'lib/nhkore/search_scraper.rb', line 201

def rss_links
  @rss_links
end

#urlObject

Since:

  • 0.2.0



202
203
204
# File 'lib/nhkore/search_scraper.rb', line 202

def url
  @url
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)

Since:

  • 0.2.0



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

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