Class: Arelastic::Queries::Ids
- Inherits:
-
Query
- Object
- Nodes::Node
- Query
- Arelastic::Queries::Ids
- Defined in:
- lib/arelastic/queries/ids.rb
Instance Attribute Summary collapse
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Instance Method Summary collapse
- #as_elastic ⇒ Object
-
#initialize(values) ⇒ Ids
constructor
A new instance of Ids.
Methods inherited from Query
Methods inherited from Nodes::Node
#==, #convert_to_elastic, #read_option!
Methods included from Arities::Binary
Methods included from Arities::Polyadic
Methods included from Arities::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
#values ⇒ Object (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_elastic ⇒ Object
10 11 12 |
# File 'lib/arelastic/queries/ids.rb', line 10 def as_elastic { "ids" => { "values" => values }} end |