lib/elasticsearch/model/response.rb in elasticsearch-model-2.0.1 vs lib/elasticsearch/model/response.rb in elasticsearch-model-5.0.0

- old
+ new

@@ -26,11 +26,11 @@ # # @return [Hash] # def response @response ||= begin - Hashie::Mash.new(search.execute!) + HashWrapper.new(search.execute!) end end # Returns the collection of "hits" from Elasticsearch # @@ -61,10 +61,10 @@ end # Returns the statistics on shards # def shards - Hashie::Mash.new(response['_shards']) + HashWrapper.new(response['_shards']) end # Returns a Hashie::Mash of the aggregations # def aggregations