Class: Arelastic::Queries::Ids

Inherits:
Query show all
Defined in:
lib/arelastic/queries/ids.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Query

#negate, #nested

Methods inherited from Nodes::Node

#==, #convert_to_elastic, #read_option!

Methods included from Arities::Binary

#binary

Methods included from Arities::Polyadic

#polyadic

Methods included from Arities::Unary

#unary

Constructor Details

#initialize(values) ⇒ Ids

Returns a new instance of Ids.



6
7
8
# File 'lib/arelastic/queries/ids.rb', line 6

def initialize values
  @values = values
end

Instance Attribute Details

#valuesObject (readonly)

Returns the value of attribute values.



4
5
6
# File 'lib/arelastic/queries/ids.rb', line 4

def values
  @values
end

Instance Method Details

#as_elasticObject



10
11
12
# File 'lib/arelastic/queries/ids.rb', line 10

def as_elastic
  { "ids" => { "values" => values }}
end