Commit 9bbbe73c5b3e5b1ed8fe93b2b0f4d1c4e92ffe19

Authored by Andrew Kane
1 parent 43db098d
Exists in master

Added todos [skip ci]

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
lib/searchkick/results.rb
@@ -3,6 +3,7 @@ module Searchkick @@ -3,6 +3,7 @@ module Searchkick
3 include Enumerable 3 include Enumerable
4 extend Forwardable 4 extend Forwardable
5 5
  6 + # TODO remove klass and options in 6.0
6 attr_reader :klass, :response, :options 7 attr_reader :klass, :response, :options
7 8
8 def_delegators :results, :each, :any?, :empty?, :size, :length, :slice, :[], :to_ary 9 def_delegators :results, :each, :any?, :empty?, :size, :length, :slice, :[], :to_ary
@@ -13,6 +14,7 @@ module Searchkick @@ -13,6 +14,7 @@ module Searchkick
13 @options = options 14 @options = options
14 end 15 end
15 16
  17 + # TODO make private in 6.0
16 def results 18 def results
17 @results ||= with_hit.map(&:first) 19 @results ||= with_hit.map(&:first)
18 end 20 end