Sha256: 466d762a1e492d0c0422b9e3185d3159cbf6320b25db0ca949f2ec707fa8ab00

Contents?: true

Size: 751 Bytes

Versions: 171

Compression:

Stored size: 751 Bytes

Contents

module Expressir
  module Model
    module DataTypes
      # Specified in ISO 10303-11:2004
      # - section 8.4.1 Enumeration data type
      class Enumeration < DataType
        model_attr_accessor :extensible, '::Boolean'
        model_attr_accessor :based_on, 'Reference'
        model_attr_accessor :items, '::Array<EnumerationItem>'

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

          super
        end
      end
    end
  end
end

Version data entries

171 entries across 171 versions & 1 rubygems

Version Path
expressir-1.3.0.pre.5-x86_64-linux-gnu lib/expressir/model/data_types/enumeration.rb
expressir-1.3.0.pre.5-x86_64-darwin lib/expressir/model/data_types/enumeration.rb
expressir-1.3.0.pre.5-x64-mingw32 lib/expressir/model/data_types/enumeration.rb
expressir-1.3.0.pre.5-x64-mingw-ucrt lib/expressir/model/data_types/enumeration.rb
expressir-1.3.0.pre.5-arm64-darwin lib/expressir/model/data_types/enumeration.rb
expressir-1.3.0.pre.5-aarch64-linux-gnu lib/expressir/model/data_types/enumeration.rb
expressir-1.3.0.pre.4-x86_64-darwin lib/expressir/model/data_types/enumeration.rb
expressir-1.3.0.pre.4-x64-mingw32 lib/expressir/model/data_types/enumeration.rb
expressir-1.3.0.pre.4-x64-mingw-ucrt lib/expressir/model/data_types/enumeration.rb
expressir-1.3.0.pre.4-arm64-darwin lib/expressir/model/data_types/enumeration.rb
expressir-1.3.0.pre.4-aarch64-linux-gnu lib/expressir/model/data_types/enumeration.rb
expressir-1.3.0.pre.2 lib/expressir/model/data_types/enumeration.rb
expressir-1.3.0.pre.2-x86_64-linux-gnu lib/expressir/model/data_types/enumeration.rb
expressir-1.3.0.pre.2-x86_64-darwin lib/expressir/model/data_types/enumeration.rb
expressir-1.3.0.pre.2-x64-mingw32 lib/expressir/model/data_types/enumeration.rb
expressir-1.3.0.pre.2-x64-mingw-ucrt lib/expressir/model/data_types/enumeration.rb
expressir-1.3.0.pre.2-arm64-darwin lib/expressir/model/data_types/enumeration.rb
expressir-1.3.0.pre.2-aarch64-linux-gnu lib/expressir/model/data_types/enumeration.rb
expressir-1.3.0.pre.1 lib/expressir/model/data_types/enumeration.rb
expressir-1.3.0.pre.1-x86_64-linux-gnu lib/expressir/model/data_types/enumeration.rb