lib/gummi/db_layer/document/search/result.rb in gummi-0.3.7 vs lib/gummi/db_layer/document/search/result.rb in gummi-0.3.8
- old
+ new
@@ -7,10 +7,10 @@
attr_reader :took, :total, :hits, :facets
def initialize(response, converter, per_page, page)
@success = !!response
@response = Hashie::Mash.new response
- @took = @response.hits.took if @response.hits
+ @took = @response.took
@total = @response.hits.total if @response.hits
@hits = @response.hits.hits if @response.hits
@facets = @response.facets || Hashie::Mash.new
@converter = converter
@per_page = per_page