Class: Noiseless::AST::Collapse

Inherits:
Node
  • Object
show all
Defined in:
lib/noiseless/ast/collapse.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#to_h

Constructor Details

#initialize(field, inner_hits: nil, max_concurrent_group_searches: nil) ⇒ Collapse

Returns a new instance of Collapse.



8
9
10
11
12
13
# File 'lib/noiseless/ast/collapse.rb', line 8

def initialize(field, inner_hits: nil, max_concurrent_group_searches: nil)
  super()
  @field = field.to_s
  @inner_hits = inner_hits
  @max_concurrent_group_searches = max_concurrent_group_searches
end

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



6
7
8
# File 'lib/noiseless/ast/collapse.rb', line 6

def field
  @field
end

#inner_hitsObject (readonly)

Returns the value of attribute inner_hits.



6
7
8
# File 'lib/noiseless/ast/collapse.rb', line 6

def inner_hits
  @inner_hits
end

#max_concurrent_group_searchesObject (readonly)

Returns the value of attribute max_concurrent_group_searches.



6
7
8
# File 'lib/noiseless/ast/collapse.rb', line 6

def max_concurrent_group_searches
  @max_concurrent_group_searches
end