Class: Boss::Spelling::Result

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(r) ⇒ Result

Returns a new instance of Result.



236
237
238
# File 'lib/boss.rb', line 236

def initialize(r)
  @result = r
end

Instance Attribute Details

#resultObject

Returns the value of attribute result.



234
235
236
# File 'lib/boss.rb', line 234

def result
  @result
end

Instance Method Details

#queryObject



240
241
242
# File 'lib/boss.rb', line 240

def query
  CGI.escape(suggestion)
end

#suggestionObject



244
245
246
# File 'lib/boss.rb', line 244

def suggestion
  @result['suggestion']
end