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