Class: Expressir::Model::DataTypes::Aggregate

Inherits:
Expressir::Model::DataType show all
Includes:
Identifier
Defined in:
lib/expressir/model/data_types/aggregate.rb

Overview

Specified in ISO 10303-11:2004

  • section 9.5.3.1 Aggregate data type

Instance Attribute Summary collapse

Attributes included from Identifier

#id, #remark_items, #remarks, #source

Attributes inherited from ModelElement

#parent

Instance Method Summary collapse

Methods inherited from ModelElement

#children_by_id, #find, from_hash, model_attr_accessor, model_attrs, #path, #reset_children_by_id, #to_hash, #to_liquid, #to_s

Constructor Details

#initialize(options = {}) ⇒ Aggregate

Returns a new instance of Aggregate.

Parameters:

  • options (Hash) (defaults to: {})

Options Hash (options):



14
15
16
17
18
19
20
# File 'lib/expressir/model/data_types/aggregate.rb', line 14

def initialize(options = {})
  initialize_identifier(options)

  @base_type = options[:base_type]

  super
end

Instance Attribute Details

#base_typeType

Returns:

  • (Type)


9
# File 'lib/expressir/model/data_types/aggregate.rb', line 9

model_attr_accessor :base_type, 'Type'

Instance Method Details

#childrenArray<Declaration>

Returns:



23
24
25
26
27
# File 'lib/expressir/model/data_types/aggregate.rb', line 23

def children
  [
    *remark_items
  ]
end