lib/elasticsearch/model/response/result.rb in elasticsearch-model-2.0.1 vs lib/elasticsearch/model/response/result.rb in elasticsearch-model-5.0.0
- old
+ new
@@ -12,10 +12,10 @@
class Result
# @param attributes [Hash] A Hash with document properties
#
def initialize(attributes={})
- @result = Hashie::Mash.new(attributes)
+ @result = HashWrapper.new(attributes)
end
# Return document `_id` as `id`
#
def id