Class: Cequel::Metal::CqlRowSpecification Private
- Inherits:
-
Object
- Object
- Cequel::Metal::CqlRowSpecification
- Defined in:
- lib/cequel/metal/cql_row_specification.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Encapsulates a row specification (‘WHERE` clause) specified by a CQL string
Class Method Summary collapse
-
.build(condition, bind_vars) ⇒ Array<CqlRowSpecification>
private
Build a new row specification.
Instance Method Summary collapse
-
#cql ⇒ Array
private
CQL and bind variables for this condition.
-
#initialize(condition, bind_vars) ⇒ CqlRowSpecification
constructor
private
Create a new row specification.
Constructor Details
#initialize(condition, bind_vars) ⇒ CqlRowSpecification
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Create a new row specification
27 28 29 |
# File 'lib/cequel/metal/cql_row_specification.rb', line 27 def initialize(condition, bind_vars) @condition, @bind_vars = condition, bind_vars end |
Class Method Details
.build(condition, bind_vars) ⇒ Array<CqlRowSpecification>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Build a new row specification
17 18 19 |
# File 'lib/cequel/metal/cql_row_specification.rb', line 17 def self.build(condition, bind_vars) [new(condition, bind_vars)] end |
Instance Method Details
#cql ⇒ Array
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
CQL and bind variables for this condition
35 36 37 |
# File 'lib/cequel/metal/cql_row_specification.rb', line 35 def cql [@condition, *@bind_vars] end |