class Elasticity::Search::ActiveRecordProxy::Relation
Public Class Methods
new(relation, search_definition, response)
click to toggle source
# File lib/elasticity/search.rb, line 212 def initialize(relation, search_definition, response) @relation = relation @search_definition = search_definition @response = response @results = Results.new(response, search_definition) end
Public Instance Methods
inspect()
click to toggle source
# File lib/elasticity/search.rb, line 229 def inspect "#<#{self.class}: #{@relation.to_sql}>" end
method_missing(name, *args, &block)
click to toggle source
# File lib/elasticity/search.rb, line 219 def method_missing(name, *args, &block) @relation.public_send(name, *args, &block) end
pretty_print(pp)
click to toggle source
# File lib/elasticity/search.rb, line 223 def pretty_print(pp) pp.object_group(self) do pp.text " #{@relation.to_sql}" end end