Sha256: 774d53e9aeed3ef7b451924f725d2adb6d70aed0fbe32233683ba6d23eb69cd4

Contents?: true

Size: 1021 Bytes

Versions: 171

Compression:

Stored size: 1021 Bytes

Contents

module Expressir
  module Model
    module Declarations
      # Specified in ISO 10303-11:2004
      # - section 11 Interface specification
      class InterfacedItem < ModelElement
        model_attr_accessor :id, 'String'
        model_attr_accessor :remarks, 'Array<String>'
        model_attr_accessor :remark_items, 'Array<RemarkItem>'

        model_attr_accessor :base_item, 'ModelElement'

        # @param [Hash] options
        # @option options [String] :id
        # @option options [Array<String>] :remarks
        # @option options [Array<RemarkItem>] :remark_items
        # @option options [ModelElement] :base_item
        def initialize(options = {})
          @id = options[:id]
          @remarks = options[:remarks] || []
          @remark_items = options[:remark_items] || []

          @base_item = options[:base_item]

          super
        end

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

Version data entries

171 entries across 171 versions & 1 rubygems

Version Path
expressir-2.1.0 lib/expressir/model/declarations/interfaced_item.rb
expressir-2.0.0 lib/expressir/model/declarations/interfaced_item.rb
expressir-1.4.2 lib/expressir/model/declarations/interfaced_item.rb
expressir-1.4.2-x86_64-linux-musl lib/expressir/model/declarations/interfaced_item.rb
expressir-1.4.2-x86_64-linux-gnu lib/expressir/model/declarations/interfaced_item.rb
expressir-1.4.2-x86_64-darwin lib/expressir/model/declarations/interfaced_item.rb
expressir-1.4.2-x64-mingw32 lib/expressir/model/declarations/interfaced_item.rb
expressir-1.4.2-x64-mingw-ucrt lib/expressir/model/declarations/interfaced_item.rb
expressir-1.4.2-arm64-darwin lib/expressir/model/declarations/interfaced_item.rb
expressir-1.4.2-aarch64-linux-musl lib/expressir/model/declarations/interfaced_item.rb
expressir-1.4.2-aarch64-linux-gnu lib/expressir/model/declarations/interfaced_item.rb
expressir-1.4.1 lib/expressir/model/declarations/interfaced_item.rb
expressir-1.4.1-x86_64-linux-musl lib/expressir/model/declarations/interfaced_item.rb
expressir-1.4.1-x86_64-linux-gnu lib/expressir/model/declarations/interfaced_item.rb
expressir-1.4.1-x86_64-darwin lib/expressir/model/declarations/interfaced_item.rb
expressir-1.4.1-x64-mingw32 lib/expressir/model/declarations/interfaced_item.rb
expressir-1.4.1-x64-mingw-ucrt lib/expressir/model/declarations/interfaced_item.rb
expressir-1.4.1-arm64-darwin lib/expressir/model/declarations/interfaced_item.rb
expressir-1.4.1-aarch64-linux-musl lib/expressir/model/declarations/interfaced_item.rb
expressir-1.4.1-aarch64-linux-gnu lib/expressir/model/declarations/interfaced_item.rb