Class: Boss::Spelling::Result
- Inherits:
-
Object
- Object
- Boss::Spelling::Result
- Defined in:
- lib/boss.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(r) ⇒ Result
constructor
A new instance of Result.
- #query ⇒ Object
- #suggestion ⇒ Object
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
#result ⇒ Object
Returns the value of attribute result.
234 235 236 |
# File 'lib/boss.rb', line 234 def result @result end |
Instance Method Details
#query ⇒ Object
240 241 242 |
# File 'lib/boss.rb', line 240 def query CGI.escape(suggestion) end |
#suggestion ⇒ Object
244 245 246 |
# File 'lib/boss.rb', line 244 def suggestion @result['suggestion'] end |