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