Class: Expressir::Model::DataTypes::EnumerationItem

Inherits:
ModelElement
  • Object
show all
Includes:
Identifier
Defined in:
lib/expressir/model/data_types/enumeration_item.rb

Overview

Specified in ISO 10303-11:2004

  • section 8.4.1 Enumeration data type

Instance Attribute Summary

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 = {}) ⇒ EnumerationItem

Returns a new instance of EnumerationItem.

Parameters:

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

Options Hash (options):



11
12
13
14
15
# File 'lib/expressir/model/data_types/enumeration_item.rb', line 11

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

  super
end

Instance Method Details

#childrenArray<Declaration>

Returns:



18
19
20
21
22
# File 'lib/expressir/model/data_types/enumeration_item.rb', line 18

def children
  [
    *remark_items
  ]
end