class ElasticsearchHermes::Result::Base
Attributes
hits[R]
shards[R]
timed_out[R]
took[R]
Public Class Methods
new(took:, timed_out:, hits:, _shards:)
click to toggle source
# File lib/elasticsearch_hermes/result/base.rb, line 8 def initialize(took:, timed_out:, hits:, _shards:) @took = took @timed_out = timed_out @shards = _shards @hits = hits end
Public Instance Methods
ids()
click to toggle source
# File lib/elasticsearch_hermes/result/base.rb, line 15 def ids @ids ||= @hits['hits'].map { |hit| hit['_id'] } end
models()
click to toggle source
# File lib/elasticsearch_hermes/result/base.rb, line 19 def models @models ||= '' end