Skip to content

Commit

Permalink
Added todos [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Oct 5, 2022
1 parent 43db098 commit 9bbbe73
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/searchkick/results.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ class Results
include Enumerable
extend Forwardable

# TODO remove klass and options in 6.0
attr_reader :klass, :response, :options

def_delegators :results, :each, :any?, :empty?, :size, :length, :slice, :[], :to_ary
Expand All @@ -13,6 +14,7 @@ def initialize(klass, response, options = {})
@options = options
end

# TODO make private in 6.0
def results
@results ||= with_hit.map(&:first)
end
Expand Down

0 comments on commit 9bbbe73

Please sign in to comment.