Class: Boss::Spelling

Inherits:
Object
  • Object
show all
Includes:
Resultset
Defined in:
lib/boss.rb

Defined Under Namespace

Classes: Result

Instance Method Summary collapse

Methods included from Resultset

#count, #initialize, #nextpage

Instance Method Details

#responseObject



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

def response
  ysearchresponse['resultset_spell']
end

#resultsetObject



224
225
226
227
228
229
230
# File 'lib/boss.rb', line 224

def resultset
  if count > 0
    response.collect{|r| Result.new(r)}
  else
    response
  end
end