Class: Expressir::Model::Declarations::InterfacedItem
- Inherits:
-
ModelElement
- Object
- ModelElement
- Expressir::Model::Declarations::InterfacedItem
show all
- Defined in:
- lib/expressir/model/declarations/interfaced_item.rb
Overview
Specified in ISO 10303-11:2004
Instance Attribute Summary collapse
Attributes inherited from ModelElement
#parent
Instance Method Summary
collapse
#children_by_id, #find, from_hash, model_attr_accessor, model_attrs, #path, #reset_children_by_id, #to_hash, #to_liquid, #to_s
Constructor Details
Returns a new instance of InterfacedItem.
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
11
|
# File 'lib/expressir/model/declarations/interfaced_item.rb', line 11
model_attr_accessor :base_item, 'ModelElement'
|
7
|
# File 'lib/expressir/model/declarations/interfaced_item.rb', line 7
model_attr_accessor :id, 'String'
|
9
|
# File 'lib/expressir/model/declarations/interfaced_item.rb', line 9
model_attr_accessor :remark_items, 'Array<RemarkItem>'
|
8
|
# File 'lib/expressir/model/declarations/interfaced_item.rb', line 8
model_attr_accessor :remarks, 'Array<String>'
|
Instance Method Details
29
30
31
32
33
|
# File 'lib/expressir/model/declarations/interfaced_item.rb', line 29
def children
[
*
]
end
|