Module: SearchApi::ResponseMethods
- Defined in:
- lib/searchapi/response_methods.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.install(response, result) ⇒ Object
4 5 6 7 |
# File 'lib/searchapi/response_methods.rb', line 4 def self.install( response, result ) response.instance_variable_set( "@_searchapi_result", result ) response.extend( ResponseMethods ) end |
Instance Method Details
#result ⇒ Object
9 10 11 |
# File 'lib/searchapi/response_methods.rb', line 9 def result @_searchapi_result end |