epb_view_models 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.DS_Store +0 -0
- data/.buildspec.yml +13 -0
- data/.gitignore +5 -0
- data/.ruby-version +1 -0
- data/Gemfile.lock +22 -17
- data/lib/epb_view_models.rb +1 -1
- data/lib/helper/xml_enums_to_output.rb +23 -13
- data/lib/presenter/rd_sap/report.rb +196 -1
- data/lib/presenter/sap/report.rb +194 -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 -0
- 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 -0
- data/lib/view_model/rd_sap_wrapper.rb +4 -0
- data/lib/view_model/sap_schema_102/common_schema.rb +28 -0
- data/lib/view_model/sap_schema_102/rdsap.rb +4 -0
- data/lib/view_model/sap_schema_110/common_schema.rb +1 -2
- data/lib/view_model/sap_schema_110/rdsap.rb +28 -0
- data/lib/view_model/sap_schema_110/sap.rb +28 -0
- data/lib/view_model/sap_schema_112/common_schema.rb +1 -2
- data/lib/view_model/sap_schema_112/rdsap.rb +28 -0
- data/lib/view_model/sap_schema_112/sap.rb +28 -0
- data/lib/view_model/sap_schema_120/rdsap.rb +28 -0
- data/lib/view_model/sap_schema_120/sap.rb +28 -0
- data/lib/view_model/sap_schema_130/rdsap.rb +28 -0
- data/lib/view_model/sap_schema_130/sap.rb +28 -0
- data/lib/view_model/sap_schema_140/rdsap.rb +28 -0
- data/lib/view_model/sap_schema_140/sap.rb +28 -0
- data/lib/view_model/sap_schema_141/rdsap.rb +28 -0
- data/lib/view_model/sap_schema_141/sap.rb +28 -0
- data/lib/view_model/sap_schema_142/rdsap.rb +28 -0
- data/lib/view_model/sap_schema_142/sap.rb +28 -0
- data/lib/view_model/sap_schema_150/rdsap.rb +28 -0
- data/lib/view_model/sap_schema_150/sap.rb +28 -0
- data/lib/view_model/sap_schema_160/rdsap.rb +28 -0
- data/lib/view_model/sap_schema_160/sap.rb +28 -0
- data/lib/view_model/sap_schema_161/rdsap.rb +28 -0
- data/lib/view_model/sap_schema_161/sap.rb +28 -0
- data/lib/view_model/sap_schema_162/rdsap.rb +28 -0
- data/lib/view_model/sap_schema_162/sap.rb +28 -0
- data/lib/view_model/sap_schema_163/rdsap.rb +28 -0
- data/lib/view_model/sap_schema_163/sap.rb +28 -0
- data/lib/view_model/sap_schema_170/common_schema.rb +28 -0
- data/lib/view_model/sap_schema_171/common_schema.rb +28 -0
- data/lib/view_model/sap_schema_1800/common_schema.rb +28 -0
- data/lib/view_model/sap_schema_ni_112/rdsap.rb +32 -4
- data/lib/view_model/sap_schema_ni_112/sap.rb +27 -0
- data/lib/view_model/sap_schema_ni_120/rdsap.rb +32 -0
- data/lib/view_model/sap_schema_ni_120/sap.rb +28 -0
- data/lib/view_model/sap_schema_ni_130/rdsap.rb +32 -0
- data/lib/view_model/sap_schema_ni_130/sap.rb +28 -0
- data/lib/view_model/sap_schema_ni_140/rdsap.rb +32 -0
- data/lib/view_model/sap_schema_ni_140/sap.rb +28 -0
- data/lib/view_model/sap_schema_ni_141/rdsap.rb +32 -0
- data/lib/view_model/sap_schema_ni_141/sap.rb +28 -0
- data/lib/view_model/sap_schema_ni_142/rdsap.rb +32 -0
- data/lib/view_model/sap_schema_ni_142/sap.rb +28 -0
- data/lib/view_model/sap_schema_ni_150/rdsap.rb +32 -0
- data/lib/view_model/sap_schema_ni_150/sap.rb +28 -0
- data/lib/view_model/sap_schema_ni_160/common_schema.rb +2 -2
- data/lib/view_model/sap_schema_ni_160/rdsap.rb +28 -0
- data/lib/view_model/sap_schema_ni_160/sap.rb +28 -0
- data/lib/view_model/sap_schema_ni_161/common_schema.rb +1 -1
- data/lib/view_model/sap_schema_ni_161/rdsap.rb +28 -0
- data/lib/view_model/sap_schema_ni_161/sap.rb +28 -0
- data/lib/view_model/sap_schema_ni_170/rdsap.rb +28 -0
- data/lib/view_model/sap_schema_ni_170/sap.rb +28 -0
- data/lib/view_model/sap_schema_ni_171/rdsap.rb +28 -0
- data/lib/view_model/sap_schema_ni_171/sap.rb +28 -0
- data/lib/view_model/sap_schema_ni_172/rdsap.rb +36 -0
- data/lib/view_model/sap_schema_ni_172/sap.rb +28 -0
- data/lib/view_model/sap_schema_ni_173/common_schema.rb +28 -0
- data/lib/view_model/sap_schema_ni_174/common_schema.rb +28 -0
- data/lib/view_model/sap_schema_ni_1800/common_schema.rb +28 -0
- data/lib/view_model/sap_wrapper.rb +4 -0
- metadata +5 -2
@@ -486,6 +486,34 @@ module ViewModel
|
|
486
486
|
.search("Main-Heating/Environmental-Efficiency-Rating")
|
487
487
|
.map(&:content)
|
488
488
|
end
|
489
|
+
|
490
|
+
def cylinder_insul_thickness
|
491
|
+
xpath(%w[Cylinder-Insulation-Thickness])
|
492
|
+
end
|
493
|
+
|
494
|
+
def cylinder_insulation_type
|
495
|
+
xpath(%w[Cylinder-Insulation-Type])
|
496
|
+
end
|
497
|
+
|
498
|
+
def cylinder_size
|
499
|
+
xpath(%w[Cylinder-Size])
|
500
|
+
end
|
501
|
+
|
502
|
+
def has_cylinder_thermostat
|
503
|
+
nil
|
504
|
+
end
|
505
|
+
|
506
|
+
def mech_vent_sys_index_number
|
507
|
+
nil
|
508
|
+
end
|
509
|
+
|
510
|
+
def mechanical_vent_data_source
|
511
|
+
nil
|
512
|
+
end
|
513
|
+
|
514
|
+
def thermal_store
|
515
|
+
nil
|
516
|
+
end
|
489
517
|
end
|
490
518
|
end
|
491
519
|
end
|
@@ -81,6 +81,34 @@ module ViewModel
|
|
81
81
|
def energy_tariff
|
82
82
|
xpath(%w[Meter-Type])
|
83
83
|
end
|
84
|
+
|
85
|
+
def cylinder_insul_thickness
|
86
|
+
xpath(%w[Cylinder-Insulation-Thickness])
|
87
|
+
end
|
88
|
+
|
89
|
+
def cylinder_insulation_type
|
90
|
+
xpath(%w[Cylinder-Insulation-Type])
|
91
|
+
end
|
92
|
+
|
93
|
+
def cylinder_size
|
94
|
+
xpath(%w[Cylinder-Size])
|
95
|
+
end
|
96
|
+
|
97
|
+
def has_cylinder_thermostat
|
98
|
+
xpath(%w[Cylinder-Thermostat])
|
99
|
+
end
|
100
|
+
|
101
|
+
def mech_vent_sys_index_number
|
102
|
+
nil
|
103
|
+
end
|
104
|
+
|
105
|
+
def mechanical_vent_data_source
|
106
|
+
nil
|
107
|
+
end
|
108
|
+
|
109
|
+
def thermal_store
|
110
|
+
nil
|
111
|
+
end
|
84
112
|
end
|
85
113
|
end
|
86
114
|
end
|
@@ -20,6 +20,34 @@ module ViewModel
|
|
20
20
|
end
|
21
21
|
nil
|
22
22
|
end
|
23
|
+
|
24
|
+
def cylinder_insul_thickness
|
25
|
+
xpath(%w[Hot-Water-Store-Insulation-Thickness])
|
26
|
+
end
|
27
|
+
|
28
|
+
def cylinder_insulation_type
|
29
|
+
xpath(%w[Hot-Water-Store-Insulation-Type])
|
30
|
+
end
|
31
|
+
|
32
|
+
def cylinder_size
|
33
|
+
xpath(%w[Hot-Water-Store-Size])
|
34
|
+
end
|
35
|
+
|
36
|
+
def has_cylinder_thermostat
|
37
|
+
xpath(%w[Has-Cylinder-Thermostat])
|
38
|
+
end
|
39
|
+
|
40
|
+
def mech_vent_sys_index_number
|
41
|
+
xpath(%w[Mechanical-Vent-System-Index-Number])
|
42
|
+
end
|
43
|
+
|
44
|
+
def mechanical_vent_data_source
|
45
|
+
xpath(%w[Mechanical-Ventilation-Data-Source])
|
46
|
+
end
|
47
|
+
|
48
|
+
def thermal_store
|
49
|
+
xpath(%w[Thermal-Store])
|
50
|
+
end
|
23
51
|
end
|
24
52
|
end
|
25
53
|
end
|
@@ -81,6 +81,34 @@ module ViewModel
|
|
81
81
|
def energy_tariff
|
82
82
|
xpath(%w[Meter-Type])
|
83
83
|
end
|
84
|
+
|
85
|
+
def cylinder_insul_thickness
|
86
|
+
xpath(%w[Cylinder-Insulation-Thickness])
|
87
|
+
end
|
88
|
+
|
89
|
+
def cylinder_insulation_type
|
90
|
+
xpath(%w[Cylinder-Insulation-Type])
|
91
|
+
end
|
92
|
+
|
93
|
+
def cylinder_size
|
94
|
+
xpath(%w[Cylinder-Size])
|
95
|
+
end
|
96
|
+
|
97
|
+
def has_cylinder_thermostat
|
98
|
+
xpath(%w[Cylinder-Thermostat])
|
99
|
+
end
|
100
|
+
|
101
|
+
def mech_vent_sys_index_number
|
102
|
+
nil
|
103
|
+
end
|
104
|
+
|
105
|
+
def mechanical_vent_data_source
|
106
|
+
nil
|
107
|
+
end
|
108
|
+
|
109
|
+
def thermal_store
|
110
|
+
nil
|
111
|
+
end
|
84
112
|
end
|
85
113
|
end
|
86
114
|
end
|
@@ -26,6 +26,34 @@ module ViewModel
|
|
26
26
|
end
|
27
27
|
nil
|
28
28
|
end
|
29
|
+
|
30
|
+
def cylinder_insul_thickness
|
31
|
+
xpath(%w[Hot-Water-Store-Insulation-Thickness])
|
32
|
+
end
|
33
|
+
|
34
|
+
def cylinder_insulation_type
|
35
|
+
xpath(%w[Hot-Water-Store-Insulation-Type])
|
36
|
+
end
|
37
|
+
|
38
|
+
def cylinder_size
|
39
|
+
xpath(%w[Hot-Water-Store-Size])
|
40
|
+
end
|
41
|
+
|
42
|
+
def has_cylinder_thermostat
|
43
|
+
xpath(%w[Has-Cylinder-Thermostat])
|
44
|
+
end
|
45
|
+
|
46
|
+
def mech_vent_sys_index_number
|
47
|
+
xpath(%w[Mechanical-Vent-System-Index-Number])
|
48
|
+
end
|
49
|
+
|
50
|
+
def mechanical_vent_data_source
|
51
|
+
xpath(%w[Mechanical-Ventilation-Data-Source])
|
52
|
+
end
|
53
|
+
|
54
|
+
def thermal_store
|
55
|
+
xpath(%w[Thermal-Store])
|
56
|
+
end
|
29
57
|
end
|
30
58
|
end
|
31
59
|
end
|
@@ -64,6 +64,34 @@ module ViewModel
|
|
64
64
|
def energy_tariff
|
65
65
|
xpath(%w[Meter-Type])
|
66
66
|
end
|
67
|
+
|
68
|
+
def cylinder_insul_thickness
|
69
|
+
xpath(%w[Cylinder-Insulation-Thickness])
|
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
|
67
95
|
end
|
68
96
|
end
|
69
97
|
end
|
@@ -8,6 +8,34 @@ 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
|
11
39
|
end
|
12
40
|
end
|
13
41
|
end
|
@@ -64,6 +64,34 @@ module ViewModel
|
|
64
64
|
def energy_tariff
|
65
65
|
xpath(%w[Meter-Type])
|
66
66
|
end
|
67
|
+
|
68
|
+
def cylinder_insul_thickness
|
69
|
+
xpath(%w[Cylinder-Insulation-Thickness])
|
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
|
67
95
|
end
|
68
96
|
end
|
69
97
|
end
|
@@ -8,6 +8,34 @@ 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
|
11
39
|
end
|
12
40
|
end
|
13
41
|
end
|
@@ -64,6 +64,34 @@ module ViewModel
|
|
64
64
|
def energy_tariff
|
65
65
|
xpath(%w[Meter-Type])
|
66
66
|
end
|
67
|
+
|
68
|
+
def cylinder_insul_thickness
|
69
|
+
xpath(%w[Cylinder-Insulation-Thickness])
|
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
|
67
95
|
end
|
68
96
|
end
|
69
97
|
end
|
@@ -8,6 +8,34 @@ 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
|
11
39
|
end
|
12
40
|
end
|
13
41
|
end
|
@@ -64,6 +64,34 @@ module ViewModel
|
|
64
64
|
def energy_tariff
|
65
65
|
xpath(%w[Meter-Type])
|
66
66
|
end
|
67
|
+
|
68
|
+
def cylinder_insul_thickness
|
69
|
+
xpath(%w[Cylinder-Insulation-Thickness])
|
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
|
67
95
|
end
|
68
96
|
end
|
69
97
|
end
|