class Arelastic::Aggregations::ReverseNested

Attributes

path[RW]

Public Class Methods

new(name, path = nil, aggs) click to toggle source
Calls superclass method Arelastic::Aggregations::Bucket::new
# File lib/arelastic/aggregations/reverse_nested.rb, line 6
def initialize(name, path = nil, aggs)
  super name, aggs: aggs
  @path = path
end

Public Instance Methods

as_elastic_aggregation() click to toggle source
# File lib/arelastic/aggregations/reverse_nested.rb, line 11
def as_elastic_aggregation
  params = path ? { "path" => path } : {}

  {"reverse_nested" => params}.merge(super)
end