lib/elasticsearch/model/response/results.rb in elasticsearch-model-7.1.2.pre vs lib/elasticsearch/model/response/results.rb in elasticsearch-model-7.2.0

- old
+ new

@@ -4,11 +4,11 @@ # ownership. Elasticsearch B.V. licenses this file to you under # the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the @@ -40,9 +40,10 @@ def results # TODO: Configurable custom wrapper response.response['hits']['hits'].map { |hit| Result.new(hit) } end + alias records results end end end end