Module: Boss::Resultset

Included in:
Images, News, Spelling, Web
Defined in:
lib/boss.rb

Instance Method Summary collapse

Instance Method Details

#countObject



24
25
26
# File 'lib/boss.rb', line 24

def count
  ysearchresponse['count'].to_i
end

#initialize(q, a = {}) ⇒ Object



19
20
21
22
# File 'lib/boss.rb', line 19

def initialize(q, a = {})
  @query = CGI.escape(q)
  @arguments = arguments(a)
end

#nextpageObject



28
29
30
# File 'lib/boss.rb', line 28

def nextpage
  ysearchresponse['nextpage']
end

#responseObject



32
33
34
# File 'lib/boss.rb', line 32

def response
  ysearchresponse["resultset_#{service}"]
end