lib/elasticsearch/model/response/results.rb in elasticsearch-model-0.1.0.rc1 vs lib/elasticsearch/model/response/results.rb in elasticsearch-model-0.1.0
- old
+ new
@@ -8,11 +8,10 @@
#
class Results
include Base
include Enumerable
- extend Support::Forwardable
- forward :results, :each, :empty?, :size, :slice, :[], :to_a, :to_ary
+ delegate :each, :empty?, :size, :slice, :[], :to_a, :to_ary, to: :results
# @see Base#initialize
#
def initialize(klass, response, options={})
super