Module: Boss::Resultset
Instance Method Summary collapse
Instance Method Details
#count ⇒ Object
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 |
#nextpage ⇒ Object
28 29 30 |
# File 'lib/boss.rb', line 28 def nextpage ysearchresponse['nextpage'] end |
#response ⇒ Object
32 33 34 |
# File 'lib/boss.rb', line 32 def response ysearchresponse["resultset_#{service}"] end |