Class: Expressir::Model::Declarations::InterfacedItem

Inherits:
ModelElement
  • Object
show all
Defined in:
lib/expressir/model/declarations/interfaced_item.rb

Overview

Specified in ISO 10303-11:2004

  • section 11 Interface specification

Instance Attribute Summary collapse

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

Returns a new instance of InterfacedItem.

Parameters:

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

Options Hash (options):



18
19
20
21
22
23
24
25
26
# File 'lib/expressir/model/declarations/interfaced_item.rb', line 18

def initialize(options = {})
  @id = options[:id]
  @remarks = options[:remarks] || []
  @remark_items = options[:remark_items] || []

  @base_item = options[:base_item]

  super
end

Instance Attribute Details

#base_itemModelElement

Returns:



11
# File 'lib/expressir/model/declarations/interfaced_item.rb', line 11

model_attr_accessor :base_item, 'ModelElement'

#idString

Returns:



7
# File 'lib/expressir/model/declarations/interfaced_item.rb', line 7

model_attr_accessor :id, 'String'

#remark_itemsArray<RemarkItem>

Returns:



9
# File 'lib/expressir/model/declarations/interfaced_item.rb', line 9

model_attr_accessor :remark_items, 'Array<RemarkItem>'

#remarksArray<String>

Returns:



8
# File 'lib/expressir/model/declarations/interfaced_item.rb', line 8

model_attr_accessor :remarks, 'Array<String>'

Instance Method Details

#childrenArray<Declaration>

Returns:



29
30
31
32
33
# File 'lib/expressir/model/declarations/interfaced_item.rb', line 29

def children
  [
    *remark_items
  ]
end