Sha256: 2b6594d0c2ded1792bc0e7558cb3e5c8d9e0643d10117ae85f080f8df3c242a1

Contents?: true

Size: 706 Bytes

Versions: 10

Compression:

Stored size: 706 Bytes

Contents

module Expressir
  module Model
    module Declarations
      # Specified in ISO 10303-11:2004
      # - section 9.2.2.1 Uniqueness rule
      class UniqueRule < Declaration
        include Identifier

        model_attr_accessor :attributes, "Reference"

        # @param [Hash] options
        # @option (see Identifier#initialize_identifier)
        # @option options [Reference] :attributes
        def initialize(options = {})
          initialize_identifier(options)

          @attributes = options[:attributes] || []

          super
        end

        # @return [Array<Declaration>]
        def children
          [
            *remark_items,
          ]
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
expressir-2.1.10 lib/expressir/model/declarations/unique_rule.rb
expressir-2.1.9 lib/expressir/model/declarations/unique_rule.rb
expressir-2.1.8 lib/expressir/model/declarations/unique_rule.rb
expressir-2.1.7 lib/expressir/model/declarations/unique_rule.rb
expressir-2.1.6 lib/expressir/model/declarations/unique_rule.rb
expressir-2.1.5 lib/expressir/model/declarations/unique_rule.rb
expressir-2.1.4 lib/expressir/model/declarations/unique_rule.rb
expressir-2.1.3 lib/expressir/model/declarations/unique_rule.rb
expressir-2.1.2 lib/expressir/model/declarations/unique_rule.rb
expressir-2.1.1 lib/expressir/model/declarations/unique_rule.rb