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
26 27 28 |
# File 'lib/cequel/metal/cql_row_specification.rb', line 26 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
16 17 18 |
# File 'lib/cequel/metal/cql_row_specification.rb', line 16 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
34 35 36 |
# File 'lib/cequel/metal/cql_row_specification.rb', line 34 def cql [@condition, *@bind_vars] end |