Class: CQL::Dsl::Comparison

Inherits:
Object
  • Object
show all
Defined in:
lib/cql/dsl.rb

Overview

Not a part of the public API. Subject to change at any time.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(operator, amount) ⇒ Comparison

Creates a new comparison object



90
91
92
93
# File 'lib/cql/dsl.rb', line 90

def initialize operator, amount
  @operator = operator
  @amount = amount
end

Instance Attribute Details

#amountObject

the operator used for comparison



85
86
87
# File 'lib/cql/dsl.rb', line 85

def amount
  @amount
end

#operatorObject

the operator used for comparison



85
86
87
# File 'lib/cql/dsl.rb', line 85

def operator
  @operator
end