Sha256: 41a99489344f0332115d5befb892626ae64ba2afecc6d4fdb79d45fd78cfb6d1

Contents?: true

Size: 894 Bytes

Versions: 6

Compression:

Stored size: 894 Bytes

Contents

module Expressir
  module Model
    module DataTypes
      # Specified in ISO 10303-11:2004
      # - section 8.4.2 Select data type
      class Select < DataType
        model_attr_accessor :extensible, "::Boolean"
        model_attr_accessor :generic_entity, "::Boolean"
        model_attr_accessor :based_on, "Reference"
        model_attr_accessor :items, "::Array<Reference>"

        # @param [Hash] options
        # @option options [::Boolean] :extensible
        # @option options [::Boolean] :generic_entity
        # @option options [Reference] :based_on
        # @option options [::Array<Reference>] :items
        def initialize(options = {})
          @extensible = options[:extensible]
          @generic_entity = options[:generic_entity]
          @based_on = options[:based_on]
          @items = options[:items] || []

          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/data_types/select.rb
expressir-2.1.5 lib/expressir/model/data_types/select.rb
expressir-2.1.4 lib/expressir/model/data_types/select.rb
expressir-2.1.3 lib/expressir/model/data_types/select.rb
expressir-2.1.2 lib/expressir/model/data_types/select.rb
expressir-2.1.1 lib/expressir/model/data_types/select.rb