Class: Solr::Response::Mlt
Instance Attribute Summary
Attributes inherited from Ruby
Attributes inherited from Base
Instance Method Summary collapse
- #hits ⇒ Object
-
#initialize(ruby_code) ⇒ Mlt
constructor
A new instance of Mlt.
Methods inherited from Ruby
Methods inherited from Base
Constructor Details
#initialize(ruby_code) ⇒ Mlt
Returns a new instance of Mlt.
2 3 4 5 |
# File 'lib/solr/response/mlt.rb', line 2 def initialize(ruby_code) super @response = @data['response'] end |
Instance Method Details
#hits ⇒ Object
7 8 9 |
# File 'lib/solr/response/mlt.rb', line 7 def hits @response['docs'] end |