Class: ActiveFacts::CQL::Compiler::Quantifier

Inherits:
Object
  • Object
show all
Defined in:
lib/activefacts/cql/compiler/reading.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(min, max, enforcement = nil) ⇒ Quantifier

Returns a new instance of Quantifier.



846
847
848
849
850
# File 'lib/activefacts/cql/compiler/reading.rb', line 846

def initialize min, max, enforcement = nil
  @min = min
  @max = max
  @enforcement = enforcement
end

Instance Attribute Details

#enforcementObject

Returns the value of attribute enforcement.



843
844
845
# File 'lib/activefacts/cql/compiler/reading.rb', line 843

def enforcement
  @enforcement
end

#maxObject (readonly)

Returns the value of attribute max.



844
845
846
# File 'lib/activefacts/cql/compiler/reading.rb', line 844

def max
  @max
end

#minObject (readonly)

Returns the value of attribute min.



844
845
846
# File 'lib/activefacts/cql/compiler/reading.rb', line 844

def min
  @min
end

Instance Method Details

#inspectObject



852
853
854
# File 'lib/activefacts/cql/compiler/reading.rb', line 852

def inspect
  "[#{@min}..#{@max}]"
end