epb_view_models 1.1.4 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/api/schemas/data/orchestrate.json +4 -0
  3. data/api/schemas/xml/RdSAP-Schema-21.0.0/RdSAP/ExternalDefinitions.xml +1627 -0
  4. data/api/schemas/xml/RdSAP-Schema-21.0.0/RdSAP/ExternalDefinitions.xsd +267 -0
  5. data/api/schemas/xml/RdSAP-Schema-21.0.0/RdSAP/Templates/AssessorManagement.xsd +212 -0
  6. data/api/schemas/xml/RdSAP-Schema-21.0.0/RdSAP/Templates/EPC-Certificate.xsd +399 -0
  7. data/api/schemas/xml/RdSAP-Schema-21.0.0/RdSAP/Templates/EPC-CollectedData.xsd +1385 -0
  8. data/api/schemas/xml/RdSAP-Schema-21.0.0/RdSAP/Templates/Property.xsd +67 -0
  9. data/api/schemas/xml/RdSAP-Schema-21.0.0/RdSAP/Templates/RdSAP-Report.xsd +179 -0
  10. data/api/schemas/xml/RdSAP-Schema-21.0.0/RdSAP/UDT/EPC-Domains.xsd +885 -0
  11. data/api/schemas/xml/RdSAP-Schema-21.0.0/RdSAP/UDT/SAP-Domains.xsd +3330 -0
  12. data/lib/epb_view_models.rb +1 -2
  13. data/lib/helper/xml_enums_to_output.rb +45 -2
  14. data/lib/view_model/factory.rb +1 -0
  15. data/lib/view_model/rd_sap_schema_210/common_schema.rb +587 -0
  16. data/lib/view_model/rd_sap_wrapper.rb +2 -0
  17. data/lib/view_model/sap_schema_110/sap.rb +1 -1
  18. data/lib/view_model/sap_schema_112/sap.rb +1 -1
  19. data/lib/view_model/sap_schema_120/sap.rb +1 -1
  20. data/lib/view_model/sap_schema_130/sap.rb +1 -1
  21. data/lib/view_model/sap_schema_140/sap.rb +1 -1
  22. data/lib/view_model/sap_schema_141/sap.rb +1 -1
  23. data/lib/view_model/sap_schema_142/sap.rb +1 -1
  24. data/lib/view_model/sap_schema_150/sap.rb +1 -1
  25. data/lib/view_model/sap_schema_160/sap.rb +1 -1
  26. data/lib/view_model/sap_schema_161/sap.rb +1 -1
  27. data/lib/view_model/sap_schema_162/sap.rb +1 -1
  28. data/lib/view_model/sap_schema_163/sap.rb +1 -1
  29. data/lib/view_model/sap_schema_170/common_schema.rb +1 -1
  30. data/lib/view_model/sap_schema_171/common_schema.rb +1 -1
  31. data/lib/view_model/sap_schema_1800/common_schema.rb +1 -1
  32. data/lib/view_model/sap_schema_1900/common_schema.rb +1 -1
  33. data/lib/view_model/sap_schema_1910/common_schema.rb +1 -1
  34. metadata +13 -3
@@ -56,7 +56,7 @@ module ViewModel
56
56
 
57
57
  def total_roof_area
58
58
  roofs = @xml_doc.xpath("//SAP-Roofs/SAP-Roof")
59
- return nil if roofs.count == 0
59
+ return nil if roofs.count.zero?
60
60
 
61
61
  total_roof_area = 0
62
62
  roofs.each do |roof|
@@ -182,7 +182,7 @@ module ViewModel
182
182
 
183
183
  def total_roof_area
184
184
  roofs = @xml_doc.xpath("//SAP-Roofs/SAP-Roof")
185
- return nil if roofs.count == 0
185
+ return nil if roofs.count.zero?
186
186
 
187
187
  total_roof_area = 0
188
188
  roofs.each do |roof|
@@ -182,7 +182,7 @@ module ViewModel
182
182
 
183
183
  def total_roof_area
184
184
  roofs = @xml_doc.xpath("//SAP-Roofs/SAP-Roof")
185
- return nil if roofs.count == 0
185
+ return nil if roofs.count.zero?
186
186
 
187
187
  total_roof_area = 0
188
188
  roofs.each do |roof|
@@ -184,7 +184,7 @@ module ViewModel
184
184
 
185
185
  def total_roof_area
186
186
  roofs = @xml_doc.xpath("//SAP-Roofs/SAP-Roof")
187
- return nil if roofs.count == 0
187
+ return nil if roofs.count.zero?
188
188
 
189
189
  total_roof_area = 0
190
190
  roofs.each do |roof|
@@ -186,7 +186,7 @@ module ViewModel
186
186
 
187
187
  def total_roof_area
188
188
  roofs = @xml_doc.xpath("//SAP-Roofs/SAP-Roof")
189
- return nil if roofs.count == 0
189
+ return nil if roofs.count.zero?
190
190
 
191
191
  total_roof_area = 0
192
192
  roofs.each do |roof|
@@ -186,7 +186,7 @@ module ViewModel
186
186
 
187
187
  def total_roof_area
188
188
  roofs = @xml_doc.xpath("//SAP-Roofs/SAP-Roof")
189
- return nil if roofs.count == 0
189
+ return nil if roofs.count.zero?
190
190
 
191
191
  total_roof_area = 0
192
192
  roofs.each do |roof|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epb_view_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - DLUHC Energy Performance of Buildings
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-08-02 00:00:00.000000000 Z
11
+ date: 2024-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -216,6 +216,15 @@ files:
216
216
  - api/schemas/xml/RdSAP-Schema-20.0.0/RdSAP/Templates/RdSAP-Report.xsd
217
217
  - api/schemas/xml/RdSAP-Schema-20.0.0/RdSAP/UDT/EPC-Domains.xsd
218
218
  - api/schemas/xml/RdSAP-Schema-20.0.0/RdSAP/UDT/SAP-Domains.xsd
219
+ - api/schemas/xml/RdSAP-Schema-21.0.0/RdSAP/ExternalDefinitions.xml
220
+ - api/schemas/xml/RdSAP-Schema-21.0.0/RdSAP/ExternalDefinitions.xsd
221
+ - api/schemas/xml/RdSAP-Schema-21.0.0/RdSAP/Templates/AssessorManagement.xsd
222
+ - api/schemas/xml/RdSAP-Schema-21.0.0/RdSAP/Templates/EPC-Certificate.xsd
223
+ - api/schemas/xml/RdSAP-Schema-21.0.0/RdSAP/Templates/EPC-CollectedData.xsd
224
+ - api/schemas/xml/RdSAP-Schema-21.0.0/RdSAP/Templates/Property.xsd
225
+ - api/schemas/xml/RdSAP-Schema-21.0.0/RdSAP/Templates/RdSAP-Report.xsd
226
+ - api/schemas/xml/RdSAP-Schema-21.0.0/RdSAP/UDT/EPC-Domains.xsd
227
+ - api/schemas/xml/RdSAP-Schema-21.0.0/RdSAP/UDT/SAP-Domains.xsd
219
228
  - api/schemas/xml/RdSAP-Schema-NI-17.3/RdSAP/ExternalDefinitions.xml
220
229
  - api/schemas/xml/RdSAP-Schema-NI-17.3/RdSAP/ExternalDefinitions.xsd
221
230
  - api/schemas/xml/RdSAP-Schema-NI-17.3/RdSAP/Templates/AssessorManagement.xsd
@@ -1772,6 +1781,7 @@ files:
1772
1781
  - lib/view_model/rd_sap_schema_180/common_schema.rb
1773
1782
  - lib/view_model/rd_sap_schema_190/common_schema.rb
1774
1783
  - lib/view_model/rd_sap_schema_200/common_schema.rb
1784
+ - lib/view_model/rd_sap_schema_210/common_schema.rb
1775
1785
  - lib/view_model/rd_sap_schema_ni_173/common_schema.rb
1776
1786
  - lib/view_model/rd_sap_schema_ni_174/common_schema.rb
1777
1787
  - lib/view_model/rd_sap_schema_ni_180/common_schema.rb
@@ -1884,7 +1894,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1884
1894
  - !ruby/object:Gem::Version
1885
1895
  version: '0'
1886
1896
  requirements: []
1887
- rubygems_version: 3.3.7
1897
+ rubygems_version: 3.3.26
1888
1898
  signing_key:
1889
1899
  specification_version: 4
1890
1900
  summary: Library used to parse Energy Performance Certificates (EPC)