epb_view_models 1.0.2 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.buildspec.yml +13 -0
- data/.gitignore +5 -0
- data/.ruby-version +1 -0
- data/Gemfile.lock +22 -17
- 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 +356 -136
- data/lib/presenter/export/domestic.rb +1 -1
- data/lib/presenter/rd_sap/report.rb +208 -3
- data/lib/presenter/sap/report.rb +208 -2
- 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_170/common_schema.rb +16 -0
- data/lib/view_model/rd_sap_schema_171/common_schema.rb +16 -0
- data/lib/view_model/rd_sap_schema_180/common_schema.rb +16 -0
- data/lib/view_model/rd_sap_schema_190/common_schema.rb +16 -0
- data/lib/view_model/rd_sap_schema_200/common_schema.rb +16 -4
- data/lib/view_model/rd_sap_schema_ni_173/common_schema.rb +16 -0
- data/lib/view_model/rd_sap_schema_ni_174/common_schema.rb +16 -0
- data/lib/view_model/rd_sap_schema_ni_180/common_schema.rb +16 -0
- data/lib/view_model/rd_sap_schema_ni_190/common_schema.rb +16 -0
- data/lib/view_model/rd_sap_schema_ni_200/common_schema.rb +16 -4
- data/lib/view_model/rd_sap_wrapper.rb +4 -0
- data/lib/view_model/sap_schema_102/common_schema.rb +33 -6
- data/lib/view_model/sap_schema_102/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_110/common_schema.rb +1 -6
- data/lib/view_model/sap_schema_110/rdsap.rb +36 -0
- data/lib/view_model/sap_schema_110/sap.rb +36 -0
- data/lib/view_model/sap_schema_112/common_schema.rb +1 -6
- data/lib/view_model/sap_schema_112/rdsap.rb +36 -0
- data/lib/view_model/sap_schema_112/sap.rb +36 -0
- data/lib/view_model/sap_schema_120/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_120/rdsap.rb +36 -0
- data/lib/view_model/sap_schema_120/sap.rb +36 -0
- data/lib/view_model/sap_schema_130/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_130/rdsap.rb +36 -0
- data/lib/view_model/sap_schema_130/sap.rb +36 -0
- data/lib/view_model/sap_schema_140/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_140/rdsap.rb +36 -0
- data/lib/view_model/sap_schema_140/sap.rb +36 -0
- data/lib/view_model/sap_schema_141/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_141/rdsap.rb +36 -0
- data/lib/view_model/sap_schema_141/sap.rb +36 -0
- data/lib/view_model/sap_schema_142/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_142/rdsap.rb +36 -0
- data/lib/view_model/sap_schema_142/sap.rb +36 -0
- data/lib/view_model/sap_schema_150/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_150/rdsap.rb +36 -0
- data/lib/view_model/sap_schema_150/sap.rb +36 -0
- data/lib/view_model/sap_schema_160/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_160/rdsap.rb +36 -0
- data/lib/view_model/sap_schema_160/sap.rb +36 -0
- data/lib/view_model/sap_schema_161/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_161/rdsap.rb +36 -0
- data/lib/view_model/sap_schema_161/sap.rb +36 -0
- data/lib/view_model/sap_schema_162/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_162/rdsap.rb +36 -0
- data/lib/view_model/sap_schema_162/sap.rb +36 -0
- data/lib/view_model/sap_schema_163/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_163/rdsap.rb +36 -0
- data/lib/view_model/sap_schema_163/sap.rb +36 -0
- data/lib/view_model/sap_schema_170/common_schema.rb +32 -0
- data/lib/view_model/sap_schema_171/common_schema.rb +32 -0
- data/lib/view_model/sap_schema_1800/common_schema.rb +32 -4
- data/lib/view_model/sap_schema_ni_112/common_schema.rb +1 -5
- data/lib/view_model/sap_schema_ni_112/rdsap.rb +45 -4
- data/lib/view_model/sap_schema_ni_112/sap.rb +35 -0
- data/lib/view_model/sap_schema_ni_120/common_schema.rb +1 -5
- data/lib/view_model/sap_schema_ni_120/rdsap.rb +40 -0
- data/lib/view_model/sap_schema_ni_120/sap.rb +36 -0
- data/lib/view_model/sap_schema_ni_130/common_schema.rb +1 -5
- data/lib/view_model/sap_schema_ni_130/rdsap.rb +40 -0
- data/lib/view_model/sap_schema_ni_130/sap.rb +36 -0
- data/lib/view_model/sap_schema_ni_140/common_schema.rb +1 -5
- data/lib/view_model/sap_schema_ni_140/rdsap.rb +40 -0
- data/lib/view_model/sap_schema_ni_140/sap.rb +36 -0
- data/lib/view_model/sap_schema_ni_141/common_schema.rb +1 -5
- data/lib/view_model/sap_schema_ni_141/rdsap.rb +40 -0
- data/lib/view_model/sap_schema_ni_141/sap.rb +36 -0
- data/lib/view_model/sap_schema_ni_142/common_schema.rb +1 -5
- data/lib/view_model/sap_schema_ni_142/rdsap.rb +40 -0
- data/lib/view_model/sap_schema_ni_142/sap.rb +36 -0
- data/lib/view_model/sap_schema_ni_150/common_schema.rb +1 -5
- data/lib/view_model/sap_schema_ni_150/rdsap.rb +40 -0
- data/lib/view_model/sap_schema_ni_150/sap.rb +36 -0
- data/lib/view_model/sap_schema_ni_160/common_schema.rb +2 -6
- data/lib/view_model/sap_schema_ni_160/rdsap.rb +36 -0
- data/lib/view_model/sap_schema_ni_160/sap.rb +36 -0
- data/lib/view_model/sap_schema_ni_161/common_schema.rb +1 -5
- data/lib/view_model/sap_schema_ni_161/rdsap.rb +36 -0
- data/lib/view_model/sap_schema_ni_161/sap.rb +36 -0
- data/lib/view_model/sap_schema_ni_170/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_ni_170/rdsap.rb +36 -0
- data/lib/view_model/sap_schema_ni_170/sap.rb +36 -0
- data/lib/view_model/sap_schema_ni_171/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_ni_171/rdsap.rb +36 -0
- data/lib/view_model/sap_schema_ni_171/sap.rb +36 -0
- data/lib/view_model/sap_schema_ni_172/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_ni_172/rdsap.rb +44 -0
- data/lib/view_model/sap_schema_ni_172/sap.rb +36 -0
- data/lib/view_model/sap_schema_ni_173/common_schema.rb +32 -0
- data/lib/view_model/sap_schema_ni_174/common_schema.rb +32 -0
- data/lib/view_model/sap_schema_ni_1800/common_schema.rb +32 -4
- data/lib/view_model/sap_wrapper.rb +4 -0
- metadata +4 -2
@@ -494,6 +494,38 @@ module ViewModel
|
|
494
494
|
.search("Main-Heating/Environmental-Efficiency-Rating")
|
495
495
|
.map(&:content)
|
496
496
|
end
|
497
|
+
|
498
|
+
def cylinder_insul_thickness
|
499
|
+
xpath(%w[Hot-Water-Store-Insulation-Thickness])
|
500
|
+
end
|
501
|
+
|
502
|
+
def cylinder_insulation_type
|
503
|
+
xpath(%w[Hot-Water-Store-Insulation-Type])
|
504
|
+
end
|
505
|
+
|
506
|
+
def cylinder_size
|
507
|
+
xpath(%w[Hot-Water-Store-Size])
|
508
|
+
end
|
509
|
+
|
510
|
+
def has_cylinder_thermostat
|
511
|
+
xpath(%w[Has-Cylinder-Thermostat])
|
512
|
+
end
|
513
|
+
|
514
|
+
def mech_vent_sys_index_number
|
515
|
+
xpath(%w[Mechanical-Vent-System-Index-Number])
|
516
|
+
end
|
517
|
+
|
518
|
+
def mechanical_vent_data_source
|
519
|
+
xpath(%w[Mechanical-Ventilation-Data-Source])
|
520
|
+
end
|
521
|
+
|
522
|
+
def thermal_store
|
523
|
+
xpath(%w[Thermal-Store])
|
524
|
+
end
|
525
|
+
|
526
|
+
def ventilation_type
|
527
|
+
xpath(%w[Ventilation-Type])
|
528
|
+
end
|
497
529
|
end
|
498
530
|
end
|
499
531
|
end
|
@@ -494,6 +494,38 @@ module ViewModel
|
|
494
494
|
.search("Main-Heating/Environmental-Efficiency-Rating")
|
495
495
|
.map(&:content)
|
496
496
|
end
|
497
|
+
|
498
|
+
def cylinder_insul_thickness
|
499
|
+
xpath(%w[Hot-Water-Store-Insulation-Thickness])
|
500
|
+
end
|
501
|
+
|
502
|
+
def cylinder_insulation_type
|
503
|
+
xpath(%w[Hot-Water-Store-Insulation-Type])
|
504
|
+
end
|
505
|
+
|
506
|
+
def cylinder_size
|
507
|
+
xpath(%w[Hot-Water-Store-Size])
|
508
|
+
end
|
509
|
+
|
510
|
+
def has_cylinder_thermostat
|
511
|
+
xpath(%w[Has-Cylinder-Thermostat])
|
512
|
+
end
|
513
|
+
|
514
|
+
def mech_vent_sys_index_number
|
515
|
+
xpath(%w[Mechanical-Vent-System-Index-Number])
|
516
|
+
end
|
517
|
+
|
518
|
+
def mechanical_vent_data_source
|
519
|
+
xpath(%w[Mechanical-Ventilation-Data-Source])
|
520
|
+
end
|
521
|
+
|
522
|
+
def thermal_store
|
523
|
+
xpath(%w[Thermal-Store])
|
524
|
+
end
|
525
|
+
|
526
|
+
def ventilation_type
|
527
|
+
xpath(%w[Ventilation-Type])
|
528
|
+
end
|
497
529
|
end
|
498
530
|
end
|
499
531
|
end
|
@@ -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
|
@@ -554,6 +550,38 @@ module ViewModel
|
|
554
550
|
.search("Main-Heating/Environmental-Efficiency-Rating")
|
555
551
|
.map(&:content)
|
556
552
|
end
|
553
|
+
|
554
|
+
def cylinder_insul_thickness
|
555
|
+
xpath(%w[Hot-Water-Store-Insulation-Thickness])
|
556
|
+
end
|
557
|
+
|
558
|
+
def cylinder_insulation_type
|
559
|
+
xpath(%w[Hot-Water-Store-Insulation-Type])
|
560
|
+
end
|
561
|
+
|
562
|
+
def cylinder_size
|
563
|
+
xpath(%w[Hot-Water-Store-Size])
|
564
|
+
end
|
565
|
+
|
566
|
+
def has_cylinder_thermostat
|
567
|
+
xpath(%w[Has-Cylinder-Thermostat])
|
568
|
+
end
|
569
|
+
|
570
|
+
def mech_vent_sys_index_number
|
571
|
+
xpath(%w[Mechanical-Vent-System-Index-Number])
|
572
|
+
end
|
573
|
+
|
574
|
+
def mechanical_vent_data_source
|
575
|
+
xpath(%w[Mechanical-Ventilation-Data-Source])
|
576
|
+
end
|
577
|
+
|
578
|
+
def thermal_store
|
579
|
+
xpath(%w[Thermal-Store])
|
580
|
+
end
|
581
|
+
|
582
|
+
def ventilation_type
|
583
|
+
xpath(%w[Ventilation-Type])
|
584
|
+
end
|
557
585
|
end
|
558
586
|
end
|
559
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
|
@@ -57,10 +57,6 @@ module ViewModel
|
|
57
57
|
xpath(%w[Solar-Water-Heating])
|
58
58
|
end
|
59
59
|
|
60
|
-
def mechanical_ventilation
|
61
|
-
xpath(%w[Mechanical-Ventilation])
|
62
|
-
end
|
63
|
-
|
64
60
|
def floor_height
|
65
61
|
@xml_doc.search("Room-Height").map(&:content)
|
66
62
|
end
|
@@ -72,6 +68,51 @@ module ViewModel
|
|
72
68
|
def energy_tariff
|
73
69
|
xpath(%w[Meter-Type])
|
74
70
|
end
|
71
|
+
|
72
|
+
def cylinder_insul_thickness
|
73
|
+
xpath(%w[Cylinder-Insulation-Thickness])
|
74
|
+
end
|
75
|
+
|
76
|
+
def glazed_area
|
77
|
+
xpath(%w[Glazed-Area])
|
78
|
+
end
|
79
|
+
|
80
|
+
def cylinder_insulation_type
|
81
|
+
xpath(%w[Cylinder-Insulation-Type])
|
82
|
+
end
|
83
|
+
|
84
|
+
def cylinder_size
|
85
|
+
xpath(%w[Cylinder-Size])
|
86
|
+
end
|
87
|
+
|
88
|
+
def has_cylinder_thermostat
|
89
|
+
xpath(%w[Cylinder-Thermostat])
|
90
|
+
end
|
91
|
+
|
92
|
+
def mech_vent_sys_index_number
|
93
|
+
nil
|
94
|
+
end
|
95
|
+
|
96
|
+
def mechanical_vent_data_source
|
97
|
+
nil
|
98
|
+
end
|
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
|
+
|
105
|
+
def thermal_store
|
106
|
+
nil
|
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
|
75
116
|
end
|
76
117
|
end
|
77
118
|
end
|
@@ -1,6 +1,41 @@
|
|
1
1
|
module ViewModel
|
2
2
|
module SapSchemaNi112
|
3
3
|
class Sap < ViewModel::SapSchemaNi112::CommonSchema
|
4
|
+
def cylinder_insul_thickness
|
5
|
+
xpath(%w[Hot-Water-Store-Insulation-Thickness])
|
6
|
+
end
|
7
|
+
|
8
|
+
def cylinder_insulation_type
|
9
|
+
xpath(%w[Hot-Water-Store-Insulation-Type])
|
10
|
+
end
|
11
|
+
|
12
|
+
def cylinder_size
|
13
|
+
xpath(%w[Hot-Water-Store-Size])
|
14
|
+
end
|
15
|
+
|
16
|
+
def has_cylinder_thermostat
|
17
|
+
xpath(%w[Has-Cylinder-Thermostat])
|
18
|
+
end
|
19
|
+
|
20
|
+
def mech_vent_sys_index_number
|
21
|
+
xpath(%w[Mechanical-Vent-System-Index-Number])
|
22
|
+
end
|
23
|
+
|
24
|
+
def mechanical_vent_data_source
|
25
|
+
xpath(%w[Mechanical-Ventilation-Data-Source])
|
26
|
+
end
|
27
|
+
|
28
|
+
def thermal_store
|
29
|
+
xpath(%w[Thermal-Store])
|
30
|
+
end
|
31
|
+
|
32
|
+
def ventilation_type
|
33
|
+
xpath(%w[Ventilation-Type])
|
34
|
+
end
|
35
|
+
|
36
|
+
def water_heating_fuel
|
37
|
+
xpath(%w[Water-Fuel-Type])
|
38
|
+
end
|
4
39
|
end
|
5
40
|
end
|
6
41
|
end
|
@@ -186,7 +186,7 @@ module ViewModel
|
|
186
186
|
end
|
187
187
|
|
188
188
|
def tenure
|
189
|
-
|
189
|
+
nil
|
190
190
|
end
|
191
191
|
|
192
192
|
def transaction_type
|
@@ -231,10 +231,6 @@ module ViewModel
|
|
231
231
|
xpath(%w[Secondary-Fuel-Type])
|
232
232
|
end
|
233
233
|
|
234
|
-
def water_heating_fuel
|
235
|
-
xpath(%w[Water-Fuel-Type])
|
236
|
-
end
|
237
|
-
|
238
234
|
def type_of_assessment
|
239
235
|
case xpath(%w[Report-Type]).to_i
|
240
236
|
when 1
|
@@ -60,6 +60,46 @@ module ViewModel
|
|
60
60
|
def energy_tariff
|
61
61
|
xpath(%w[Meter-Type])
|
62
62
|
end
|
63
|
+
|
64
|
+
def cylinder_insul_thickness
|
65
|
+
xpath(%w[Cylinder-Insulation-Thickness])
|
66
|
+
end
|
67
|
+
|
68
|
+
def glazed_area
|
69
|
+
xpath(%w[Glazed-Area])
|
70
|
+
end
|
71
|
+
|
72
|
+
def cylinder_insulation_type
|
73
|
+
xpath(%w[Cylinder-Insulation-Type])
|
74
|
+
end
|
75
|
+
|
76
|
+
def cylinder_size
|
77
|
+
xpath(%w[Cylinder-Size])
|
78
|
+
end
|
79
|
+
|
80
|
+
def has_cylinder_thermostat
|
81
|
+
xpath(%w[Cylinder-Thermostat])
|
82
|
+
end
|
83
|
+
|
84
|
+
def mech_vent_sys_index_number
|
85
|
+
nil
|
86
|
+
end
|
87
|
+
|
88
|
+
def mechanical_vent_data_source
|
89
|
+
nil
|
90
|
+
end
|
91
|
+
|
92
|
+
def thermal_store
|
93
|
+
nil
|
94
|
+
end
|
95
|
+
|
96
|
+
def ventilation_type
|
97
|
+
nil
|
98
|
+
end
|
99
|
+
|
100
|
+
def water_heating_fuel
|
101
|
+
xpath(%w[Water-Heating-Fuel])
|
102
|
+
end
|
63
103
|
end
|
64
104
|
end
|
65
105
|
end
|
@@ -8,6 +8,42 @@ module ViewModel
|
|
8
8
|
def construction_year
|
9
9
|
xpath(%w[Construction-Year])
|
10
10
|
end
|
11
|
+
|
12
|
+
def cylinder_insul_thickness
|
13
|
+
xpath(%w[Hot-Water-Store-Insulation-Thickness])
|
14
|
+
end
|
15
|
+
|
16
|
+
def cylinder_insulation_type
|
17
|
+
xpath(%w[Hot-Water-Store-Insulation-Type])
|
18
|
+
end
|
19
|
+
|
20
|
+
def cylinder_size
|
21
|
+
xpath(%w[Hot-Water-Store-Size])
|
22
|
+
end
|
23
|
+
|
24
|
+
def has_cylinder_thermostat
|
25
|
+
xpath(%w[Has-Cylinder-Thermostat])
|
26
|
+
end
|
27
|
+
|
28
|
+
def mech_vent_sys_index_number
|
29
|
+
xpath(%w[Mechanical-Vent-System-Index-Number])
|
30
|
+
end
|
31
|
+
|
32
|
+
def mechanical_vent_data_source
|
33
|
+
xpath(%w[Mechanical-Ventilation-Data-Source])
|
34
|
+
end
|
35
|
+
|
36
|
+
def thermal_store
|
37
|
+
xpath(%w[Thermal-Store])
|
38
|
+
end
|
39
|
+
|
40
|
+
def ventilation_type
|
41
|
+
xpath(%w[Ventilation-Type])
|
42
|
+
end
|
43
|
+
|
44
|
+
def water_heating_fuel
|
45
|
+
xpath(%w[Water-Fuel-Type])
|
46
|
+
end
|
11
47
|
end
|
12
48
|
end
|
13
49
|
end
|
@@ -183,7 +183,7 @@ module ViewModel
|
|
183
183
|
end
|
184
184
|
|
185
185
|
def tenure
|
186
|
-
|
186
|
+
nil
|
187
187
|
end
|
188
188
|
|
189
189
|
def transaction_type
|
@@ -228,10 +228,6 @@ module ViewModel
|
|
228
228
|
xpath(%w[Secondary-Fuel-Type])
|
229
229
|
end
|
230
230
|
|
231
|
-
def water_heating_fuel
|
232
|
-
xpath(%w[Water-Fuel-Type])
|
233
|
-
end
|
234
|
-
|
235
231
|
def type_of_assessment
|
236
232
|
case xpath(%w[Report-Type]).to_i
|
237
233
|
when 1
|
@@ -60,6 +60,46 @@ module ViewModel
|
|
60
60
|
def energy_tariff
|
61
61
|
xpath(%w[Meter-Type])
|
62
62
|
end
|
63
|
+
|
64
|
+
def cylinder_insul_thickness
|
65
|
+
xpath(%w[Cylinder-Insulation-Thickness])
|
66
|
+
end
|
67
|
+
|
68
|
+
def glazed_area
|
69
|
+
xpath(%w[Glazed-Area])
|
70
|
+
end
|
71
|
+
|
72
|
+
def cylinder_insulation_type
|
73
|
+
xpath(%w[Cylinder-Insulation-Type])
|
74
|
+
end
|
75
|
+
|
76
|
+
def cylinder_size
|
77
|
+
xpath(%w[Cylinder-Size])
|
78
|
+
end
|
79
|
+
|
80
|
+
def has_cylinder_thermostat
|
81
|
+
xpath(%w[Cylinder-Thermostat])
|
82
|
+
end
|
83
|
+
|
84
|
+
def mech_vent_sys_index_number
|
85
|
+
nil
|
86
|
+
end
|
87
|
+
|
88
|
+
def mechanical_vent_data_source
|
89
|
+
nil
|
90
|
+
end
|
91
|
+
|
92
|
+
def thermal_store
|
93
|
+
nil
|
94
|
+
end
|
95
|
+
|
96
|
+
def ventilation_type
|
97
|
+
nil
|
98
|
+
end
|
99
|
+
|
100
|
+
def water_heating_fuel
|
101
|
+
xpath(%w[Water-Heating-Fuel])
|
102
|
+
end
|
63
103
|
end
|
64
104
|
end
|
65
105
|
end
|
@@ -8,6 +8,42 @@ module ViewModel
|
|
8
8
|
def construction_year
|
9
9
|
xpath(%w[Construction-Year])
|
10
10
|
end
|
11
|
+
|
12
|
+
def cylinder_insul_thickness
|
13
|
+
xpath(%w[Hot-Water-Store-Insulation-Thickness])
|
14
|
+
end
|
15
|
+
|
16
|
+
def cylinder_insulation_type
|
17
|
+
xpath(%w[Hot-Water-Store-Insulation-Type])
|
18
|
+
end
|
19
|
+
|
20
|
+
def cylinder_size
|
21
|
+
xpath(%w[Hot-Water-Store-Size])
|
22
|
+
end
|
23
|
+
|
24
|
+
def has_cylinder_thermostat
|
25
|
+
xpath(%w[Has-Cylinder-Thermostat])
|
26
|
+
end
|
27
|
+
|
28
|
+
def mech_vent_sys_index_number
|
29
|
+
xpath(%w[Mechanical-Vent-System-Index-Number])
|
30
|
+
end
|
31
|
+
|
32
|
+
def mechanical_vent_data_source
|
33
|
+
xpath(%w[Mechanical-Ventilation-Data-Source])
|
34
|
+
end
|
35
|
+
|
36
|
+
def thermal_store
|
37
|
+
xpath(%w[Thermal-Store])
|
38
|
+
end
|
39
|
+
|
40
|
+
def ventilation_type
|
41
|
+
xpath(%w[Ventilation-Type])
|
42
|
+
end
|
43
|
+
|
44
|
+
def water_heating_fuel
|
45
|
+
xpath(%w[Water-Fuel-Type])
|
46
|
+
end
|
11
47
|
end
|
12
48
|
end
|
13
49
|
end
|
@@ -183,7 +183,7 @@ module ViewModel
|
|
183
183
|
end
|
184
184
|
|
185
185
|
def tenure
|
186
|
-
|
186
|
+
nil
|
187
187
|
end
|
188
188
|
|
189
189
|
def transaction_type
|
@@ -228,10 +228,6 @@ module ViewModel
|
|
228
228
|
xpath(%w[Secondary-Fuel-Type])
|
229
229
|
end
|
230
230
|
|
231
|
-
def water_heating_fuel
|
232
|
-
xpath(%w[Water-Fuel-Type])
|
233
|
-
end
|
234
|
-
|
235
231
|
def type_of_assessment
|
236
232
|
case xpath(%w[Report-Type]).to_i
|
237
233
|
when 1
|
@@ -60,6 +60,46 @@ module ViewModel
|
|
60
60
|
def energy_tariff
|
61
61
|
xpath(%w[Meter-Type])
|
62
62
|
end
|
63
|
+
|
64
|
+
def cylinder_insul_thickness
|
65
|
+
xpath(%w[Cylinder-Insulation-Thickness])
|
66
|
+
end
|
67
|
+
|
68
|
+
def glazed_area
|
69
|
+
xpath(%w[Glazed-Area])
|
70
|
+
end
|
71
|
+
|
72
|
+
def cylinder_insulation_type
|
73
|
+
xpath(%w[Cylinder-Insulation-Type])
|
74
|
+
end
|
75
|
+
|
76
|
+
def cylinder_size
|
77
|
+
xpath(%w[Cylinder-Size])
|
78
|
+
end
|
79
|
+
|
80
|
+
def has_cylinder_thermostat
|
81
|
+
xpath(%w[Cylinder-Thermostat])
|
82
|
+
end
|
83
|
+
|
84
|
+
def mech_vent_sys_index_number
|
85
|
+
nil
|
86
|
+
end
|
87
|
+
|
88
|
+
def mechanical_vent_data_source
|
89
|
+
nil
|
90
|
+
end
|
91
|
+
|
92
|
+
def thermal_store
|
93
|
+
nil
|
94
|
+
end
|
95
|
+
|
96
|
+
def ventilation_type
|
97
|
+
nil
|
98
|
+
end
|
99
|
+
|
100
|
+
def water_heating_fuel
|
101
|
+
xpath(%w[Water-Heating-Fuel])
|
102
|
+
end
|
63
103
|
end
|
64
104
|
end
|
65
105
|
end
|
@@ -8,6 +8,42 @@ module ViewModel
|
|
8
8
|
def construction_year
|
9
9
|
xpath(%w[Construction-Year])
|
10
10
|
end
|
11
|
+
|
12
|
+
def cylinder_insul_thickness
|
13
|
+
xpath(%w[Hot-Water-Store-Insulation-Thickness])
|
14
|
+
end
|
15
|
+
|
16
|
+
def cylinder_insulation_type
|
17
|
+
xpath(%w[Hot-Water-Store-Insulation-Type])
|
18
|
+
end
|
19
|
+
|
20
|
+
def cylinder_size
|
21
|
+
xpath(%w[Hot-Water-Store-Size])
|
22
|
+
end
|
23
|
+
|
24
|
+
def has_cylinder_thermostat
|
25
|
+
xpath(%w[Has-Cylinder-Thermostat])
|
26
|
+
end
|
27
|
+
|
28
|
+
def mech_vent_sys_index_number
|
29
|
+
xpath(%w[Mechanical-Vent-System-Index-Number])
|
30
|
+
end
|
31
|
+
|
32
|
+
def mechanical_vent_data_source
|
33
|
+
xpath(%w[Mechanical-Ventilation-Data-Source])
|
34
|
+
end
|
35
|
+
|
36
|
+
def thermal_store
|
37
|
+
xpath(%w[Thermal-Store])
|
38
|
+
end
|
39
|
+
|
40
|
+
def ventilation_type
|
41
|
+
xpath(%w[Ventilation-Type])
|
42
|
+
end
|
43
|
+
|
44
|
+
def water_heating_fuel
|
45
|
+
xpath(%w[Water-Fuel-Type])
|
46
|
+
end
|
11
47
|
end
|
12
48
|
end
|
13
49
|
end
|
@@ -183,7 +183,7 @@ module ViewModel
|
|
183
183
|
end
|
184
184
|
|
185
185
|
def tenure
|
186
|
-
|
186
|
+
nil
|
187
187
|
end
|
188
188
|
|
189
189
|
def transaction_type
|
@@ -228,10 +228,6 @@ module ViewModel
|
|
228
228
|
xpath(%w[Secondary-Fuel-Type])
|
229
229
|
end
|
230
230
|
|
231
|
-
def water_heating_fuel
|
232
|
-
xpath(%w[Water-Fuel-Type])
|
233
|
-
end
|
234
|
-
|
235
231
|
def type_of_assessment
|
236
232
|
case xpath(%w[Report-Type]).to_i
|
237
233
|
when 1
|
@@ -60,6 +60,46 @@ module ViewModel
|
|
60
60
|
def energy_tariff
|
61
61
|
xpath(%w[Meter-Type])
|
62
62
|
end
|
63
|
+
|
64
|
+
def cylinder_insul_thickness
|
65
|
+
xpath(%w[Cylinder-Insulation-Thickness])
|
66
|
+
end
|
67
|
+
|
68
|
+
def glazed_area
|
69
|
+
xpath(%w[Glazed-Area])
|
70
|
+
end
|
71
|
+
|
72
|
+
def cylinder_insulation_type
|
73
|
+
xpath(%w[Cylinder-Insulation-Type])
|
74
|
+
end
|
75
|
+
|
76
|
+
def cylinder_size
|
77
|
+
xpath(%w[Cylinder-Size])
|
78
|
+
end
|
79
|
+
|
80
|
+
def has_cylinder_thermostat
|
81
|
+
xpath(%w[Cylinder-Thermostat])
|
82
|
+
end
|
83
|
+
|
84
|
+
def mech_vent_sys_index_number
|
85
|
+
nil
|
86
|
+
end
|
87
|
+
|
88
|
+
def mechanical_vent_data_source
|
89
|
+
nil
|
90
|
+
end
|
91
|
+
|
92
|
+
def thermal_store
|
93
|
+
nil
|
94
|
+
end
|
95
|
+
|
96
|
+
def ventilation_type
|
97
|
+
nil
|
98
|
+
end
|
99
|
+
|
100
|
+
def water_heating_fuel
|
101
|
+
xpath(%w[Water-Heating-Fuel])
|
102
|
+
end
|
63
103
|
end
|
64
104
|
end
|
65
105
|
end
|
@@ -8,6 +8,42 @@ module ViewModel
|
|
8
8
|
def construction_year
|
9
9
|
xpath(%w[Construction-Year])
|
10
10
|
end
|
11
|
+
|
12
|
+
def cylinder_insul_thickness
|
13
|
+
xpath(%w[Hot-Water-Store-Insulation-Thickness])
|
14
|
+
end
|
15
|
+
|
16
|
+
def cylinder_insulation_type
|
17
|
+
xpath(%w[Hot-Water-Store-Insulation-Type])
|
18
|
+
end
|
19
|
+
|
20
|
+
def cylinder_size
|
21
|
+
xpath(%w[Hot-Water-Store-Size])
|
22
|
+
end
|
23
|
+
|
24
|
+
def has_cylinder_thermostat
|
25
|
+
xpath(%w[Has-Cylinder-Thermostat])
|
26
|
+
end
|
27
|
+
|
28
|
+
def mech_vent_sys_index_number
|
29
|
+
xpath(%w[Mechanical-Vent-System-Index-Number])
|
30
|
+
end
|
31
|
+
|
32
|
+
def mechanical_vent_data_source
|
33
|
+
xpath(%w[Mechanical-Ventilation-Data-Source])
|
34
|
+
end
|
35
|
+
|
36
|
+
def thermal_store
|
37
|
+
xpath(%w[Thermal-Store])
|
38
|
+
end
|
39
|
+
|
40
|
+
def ventilation_type
|
41
|
+
xpath(%w[Ventilation-Type])
|
42
|
+
end
|
43
|
+
|
44
|
+
def water_heating_fuel
|
45
|
+
xpath(%w[Water-Fuel-Type])
|
46
|
+
end
|
11
47
|
end
|
12
48
|
end
|
13
49
|
end
|