class Arelastic::Queries::HasParent
Attributes
parent_type[R]
query[R]
Public Class Methods
new(parent_type, query)
click to toggle source
# File lib/arelastic/queries/has_parent.rb, line 6 def initialize parent_type, query @parent_type = parent_type @query = query end
Public Instance Methods
as_elastic()
click to toggle source
# File lib/arelastic/queries/has_parent.rb, line 11 def as_elastic { "has_parent" => { "parent_type" => parent_type, "query" => convert_to_elastic(query) } } end