Class: Zinx::Result
- Inherits:
-
Object
- Object
- Zinx::Result
- Defined in:
- lib/zinx.rb
Instance Attribute Summary collapse
-
#matches ⇒ Object
readonly
Returns the value of attribute matches.
Instance Method Summary collapse
-
#initialize(sphinx_hash) ⇒ Result
constructor
A new instance of Result.
- #method_missing(method) ⇒ Object
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method) ⇒ Object
243 244 245 |
# File 'lib/zinx.rb', line 243 def method_missing(method) @sphinx_hash["#{method}"] end |
Instance Attribute Details
#matches ⇒ Object (readonly)
Returns the value of attribute matches.
233 234 235 |
# File 'lib/zinx.rb', line 233 def matches @matches end |