Class: BuildingSync::ExteriorFloorSystemType

Inherits:
Object
  • Object
show all
Defined in:
lib/buildingsync/model_articulation/exterior_floor_system_type.rb

Overview

Exterior Floor System Type

Instance Method Summary collapse

Constructor Details

#initialize(doc, ns, ref) ⇒ ExteriorFloorSystemType

initialize a specific floor system type given a ref

Parameters:

  • doc (REXML::Document)
  • ns (String)
  • ref (String)


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

Parameters:

  • floor_system (REXML:Element)
  • ns (String)


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