Class: BuildingSync::WallSystemType
- Inherits:
-
Object
- Object
- BuildingSync::WallSystemType
- Defined in:
- lib/buildingsync/model_articulation/wall_system_type.rb
Overview
Wall System Type
Instance Method Summary collapse
-
#initialize(doc, ns, ref) ⇒ WallSystemType
constructor
initialize a specific floor system type given a ref.
-
#read(wall_system, ns) ⇒ Object
read.
Constructor Details
#initialize(doc, ns, ref) ⇒ WallSystemType
initialize a specific floor system type given a ref
47 48 49 50 51 52 53 54 |
# File 'lib/buildingsync/model_articulation/wall_system_type.rb', line 47 def initialize(doc, ns, ref) @id = nil doc.elements.each("#{ns}:Systems/#{ns}:WallSystems/#{ns}:WallSystem") do |wall_system| if wall_system.attributes['ID'] == ref read(wall_system, ns) end end end |
Instance Method Details
#read(wall_system, ns) ⇒ Object
read
59 60 61 62 |
# File 'lib/buildingsync/model_articulation/wall_system_type.rb', line 59 def read(wall_system, ns) # ID @id = wall_system.attributes['ID'] if wall_system.attributes['ID'] end |