Sha256: ca9f237f5559fc11b3b01ec17e27000accf23a122cd5dcc4280b9afd92ea40f4

Contents?: true

Size: 1.1 KB

Versions: 6

Compression:

Stored size: 1.1 KB

Contents

module Expressir
  module Model
    module Expressions
      # Specified in ISO 10303-11:2004
      # - section 12.2.4 Interval expressions
      class Interval < Expression
        LESS_THAN = :LESS_THAN
        LESS_THAN_OR_EQUAL = :LESS_THAN_OR_EQUAL

        model_attr_accessor :low, "Expression"
        model_attr_accessor :operator1, ":LESS_THAN, :LESS_THAN_OR_EQUAL"
        model_attr_accessor :item, "Reference"
        model_attr_accessor :operator2, ":LESS_THAN, :LESS_THAN_OR_EQUAL"
        model_attr_accessor :high, "Expression"

        # @param [Hash] options
        # @option options [Expression] :low
        # @option options [:LESS_THAN, :LESS_THAN_OR_EQUAL] :operator1
        # @option options [Reference] :item
        # @option options [:LESS_THAN, :LESS_THAN_OR_EQUAL] :operator2
        # @option options [Expression] :high
        def initialize(options = {})
          @low = options[:low]
          @operator1 = options[:operator1]
          @item = options[:item]
          @operator2 = options[:operator2]
          @high = options[:high]

          super
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
expressir-2.1.6 lib/expressir/model/expressions/interval.rb
expressir-2.1.5 lib/expressir/model/expressions/interval.rb
expressir-2.1.4 lib/expressir/model/expressions/interval.rb
expressir-2.1.3 lib/expressir/model/expressions/interval.rb
expressir-2.1.2 lib/expressir/model/expressions/interval.rb
expressir-2.1.1 lib/expressir/model/expressions/interval.rb