epb_view_models 1.0.3 → 1.0.4
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.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/api/schemas/xml/RdSAP-Schema-NI-19.0/RdSAP/Templates/EPC-CollectedData.xsd +13 -12
- data/lib/epb_view_models.rb +1 -1
- data/lib/helper/energy_band_calculator.rb +1 -1
- data/lib/helper/xml_enums_to_output.rb +264 -114
- data/lib/presenter/export/domestic.rb +1 -1
- data/lib/presenter/rd_sap/report.rb +21 -11
- data/lib/presenter/sap/report.rb +19 -7
- data/lib/presenter/sap/summary.rb +1 -1
- data/lib/view_model/domestic_epc_view_model.rb +4 -0
- data/lib/view_model/rd_sap_schema_200/common_schema.rb +0 -4
- data/lib/view_model/rd_sap_schema_ni_200/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_102/common_schema.rb +5 -6
- data/lib/view_model/sap_schema_102/rdsap.rb +4 -0
- data/lib/view_model/sap_schema_110/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_110/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_110/sap.rb +8 -0
- data/lib/view_model/sap_schema_112/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_112/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_112/sap.rb +8 -0
- data/lib/view_model/sap_schema_120/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_120/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_120/sap.rb +8 -0
- data/lib/view_model/sap_schema_130/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_130/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_130/sap.rb +8 -0
- data/lib/view_model/sap_schema_140/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_140/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_140/sap.rb +8 -0
- data/lib/view_model/sap_schema_141/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_141/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_141/sap.rb +8 -0
- data/lib/view_model/sap_schema_142/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_142/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_142/sap.rb +8 -0
- data/lib/view_model/sap_schema_150/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_150/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_150/sap.rb +8 -0
- data/lib/view_model/sap_schema_160/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_160/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_160/sap.rb +8 -0
- data/lib/view_model/sap_schema_161/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_161/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_161/sap.rb +8 -0
- data/lib/view_model/sap_schema_162/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_162/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_162/sap.rb +8 -0
- data/lib/view_model/sap_schema_163/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_163/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_163/sap.rb +8 -0
- data/lib/view_model/sap_schema_170/common_schema.rb +4 -0
- data/lib/view_model/sap_schema_171/common_schema.rb +4 -0
- data/lib/view_model/sap_schema_1800/common_schema.rb +4 -4
- data/lib/view_model/sap_schema_ni_112/common_schema.rb +1 -5
- data/lib/view_model/sap_schema_ni_112/rdsap.rb +13 -0
- data/lib/view_model/sap_schema_ni_112/sap.rb +8 -0
- data/lib/view_model/sap_schema_ni_120/common_schema.rb +1 -5
- data/lib/view_model/sap_schema_ni_120/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_ni_120/sap.rb +8 -0
- data/lib/view_model/sap_schema_ni_130/common_schema.rb +1 -5
- data/lib/view_model/sap_schema_ni_130/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_ni_130/sap.rb +8 -0
- data/lib/view_model/sap_schema_ni_140/common_schema.rb +1 -5
- data/lib/view_model/sap_schema_ni_140/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_ni_140/sap.rb +8 -0
- data/lib/view_model/sap_schema_ni_141/common_schema.rb +1 -5
- data/lib/view_model/sap_schema_ni_141/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_ni_141/sap.rb +8 -0
- data/lib/view_model/sap_schema_ni_142/common_schema.rb +1 -5
- data/lib/view_model/sap_schema_ni_142/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_ni_142/sap.rb +8 -0
- data/lib/view_model/sap_schema_ni_150/common_schema.rb +1 -5
- data/lib/view_model/sap_schema_ni_150/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_ni_150/sap.rb +8 -0
- data/lib/view_model/sap_schema_ni_160/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_ni_160/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_ni_160/sap.rb +8 -0
- data/lib/view_model/sap_schema_ni_161/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_ni_161/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_ni_161/sap.rb +8 -0
- data/lib/view_model/sap_schema_ni_170/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_ni_170/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_ni_170/sap.rb +8 -0
- data/lib/view_model/sap_schema_ni_171/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_ni_171/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_ni_171/sap.rb +8 -0
- data/lib/view_model/sap_schema_ni_172/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_ni_172/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_ni_172/sap.rb +8 -0
- data/lib/view_model/sap_schema_ni_173/common_schema.rb +4 -0
- data/lib/view_model/sap_schema_ni_174/common_schema.rb +4 -0
- data/lib/view_model/sap_schema_ni_1800/common_schema.rb +4 -4
- metadata +2 -3
- data/.DS_Store +0 -0
|
@@ -297,10 +297,6 @@ module ViewModel
|
|
|
297
297
|
xpath(%w[Floor-Heat-Loss])
|
|
298
298
|
end
|
|
299
299
|
|
|
300
|
-
def water_heating_code
|
|
301
|
-
xpath(%w[Water-Heating-Code])
|
|
302
|
-
end
|
|
303
|
-
|
|
304
300
|
def immersion_heating_type
|
|
305
301
|
xpath(%w[Immersion-Heating-Type])
|
|
306
302
|
end
|
|
@@ -582,6 +578,10 @@ module ViewModel
|
|
|
582
578
|
def thermal_store
|
|
583
579
|
xpath(%w[Thermal-Store])
|
|
584
580
|
end
|
|
581
|
+
|
|
582
|
+
def ventilation_type
|
|
583
|
+
xpath(%w[Ventilation-Type])
|
|
584
|
+
end
|
|
585
585
|
end
|
|
586
586
|
end
|
|
587
587
|
end
|
|
@@ -190,7 +190,7 @@ module ViewModel
|
|
|
190
190
|
end
|
|
191
191
|
|
|
192
192
|
def tenure
|
|
193
|
-
|
|
193
|
+
nil
|
|
194
194
|
end
|
|
195
195
|
|
|
196
196
|
def transaction_type
|
|
@@ -235,10 +235,6 @@ module ViewModel
|
|
|
235
235
|
xpath(%w[Secondary-Fuel-Type])
|
|
236
236
|
end
|
|
237
237
|
|
|
238
|
-
def water_heating_fuel
|
|
239
|
-
xpath(%w[Water-Fuel-Type])
|
|
240
|
-
end
|
|
241
|
-
|
|
242
238
|
def type_of_assessment
|
|
243
239
|
case xpath(%w[Report-Type]).to_i
|
|
244
240
|
when 1
|
|
@@ -97,9 +97,22 @@ module ViewModel
|
|
|
97
97
|
nil
|
|
98
98
|
end
|
|
99
99
|
|
|
100
|
+
# DO NOT CORRECT - this typo is present in the schema XML pre 12.0
|
|
101
|
+
def mechanical_ventilation
|
|
102
|
+
xpath(%w[Mechanical-Ventliation])
|
|
103
|
+
end
|
|
104
|
+
|
|
100
105
|
def thermal_store
|
|
101
106
|
nil
|
|
102
107
|
end
|
|
108
|
+
|
|
109
|
+
def ventilation_type
|
|
110
|
+
nil
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
def water_heating_fuel
|
|
114
|
+
xpath(%w[Water-Heating-Fuel])
|
|
115
|
+
end
|
|
103
116
|
end
|
|
104
117
|
end
|
|
105
118
|
end
|