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
@@ -17,6 +17,42 @@ module ViewModel
|
|
17
17
|
def construction_year
|
18
18
|
xpath(%w[Construction-Year])
|
19
19
|
end
|
20
|
+
|
21
|
+
def cylinder_insul_thickness
|
22
|
+
xpath(%w[Hot-Water-Store-Insulation-Thickness])
|
23
|
+
end
|
24
|
+
|
25
|
+
def cylinder_insulation_type
|
26
|
+
xpath(%w[Hot-Water-Store-Insulation-Type])
|
27
|
+
end
|
28
|
+
|
29
|
+
def cylinder_size
|
30
|
+
xpath(%w[Hot-Water-Store-Size])
|
31
|
+
end
|
32
|
+
|
33
|
+
def has_cylinder_thermostat
|
34
|
+
xpath(%w[Has-Cylinder-Thermostat])
|
35
|
+
end
|
36
|
+
|
37
|
+
def mech_vent_sys_index_number
|
38
|
+
xpath(%w[Mechanical-Vent-System-Index-Number])
|
39
|
+
end
|
40
|
+
|
41
|
+
def mechanical_vent_data_source
|
42
|
+
xpath(%w[Mechanical-Ventilation-Data-Source])
|
43
|
+
end
|
44
|
+
|
45
|
+
def thermal_store
|
46
|
+
xpath(%w[Thermal-Store])
|
47
|
+
end
|
48
|
+
|
49
|
+
def ventilation_type
|
50
|
+
xpath(%w[Ventilation-Type])
|
51
|
+
end
|
52
|
+
|
53
|
+
def water_heating_fuel
|
54
|
+
xpath(%w[Water-Fuel-Type])
|
55
|
+
end
|
20
56
|
end
|
21
57
|
end
|
22
58
|
end
|
@@ -478,6 +478,38 @@ module ViewModel
|
|
478
478
|
.search("Main-Heating-Controls/Environmental-Efficiency-Rating")
|
479
479
|
.map(&:content)
|
480
480
|
end
|
481
|
+
|
482
|
+
def cylinder_insul_thickness
|
483
|
+
xpath(%w[Hot-Water-Store-Insulation-Thickness])
|
484
|
+
end
|
485
|
+
|
486
|
+
def cylinder_insulation_type
|
487
|
+
xpath(%w[Hot-Water-Store-Insulation-Type])
|
488
|
+
end
|
489
|
+
|
490
|
+
def cylinder_size
|
491
|
+
xpath(%w[Hot-Water-Store-Size])
|
492
|
+
end
|
493
|
+
|
494
|
+
def has_cylinder_thermostat
|
495
|
+
xpath(%w[Has-Cylinder-Thermostat])
|
496
|
+
end
|
497
|
+
|
498
|
+
def mech_vent_sys_index_number
|
499
|
+
xpath(%w[Mechanical-Vent-System-Index-Number])
|
500
|
+
end
|
501
|
+
|
502
|
+
def mechanical_vent_data_source
|
503
|
+
xpath(%w[Mechanical-Ventilation-Data-Source])
|
504
|
+
end
|
505
|
+
|
506
|
+
def thermal_store
|
507
|
+
xpath(%w[Thermal-Store])
|
508
|
+
end
|
509
|
+
|
510
|
+
def ventilation_type
|
511
|
+
xpath(%w[Ventilation-Type])
|
512
|
+
end
|
481
513
|
end
|
482
514
|
end
|
483
515
|
end
|
@@ -478,6 +478,38 @@ module ViewModel
|
|
478
478
|
.search("Main-Heating-Controls/Environmental-Efficiency-Rating")
|
479
479
|
.map(&:content)
|
480
480
|
end
|
481
|
+
|
482
|
+
def cylinder_insul_thickness
|
483
|
+
xpath(%w[Hot-Water-Store-Insulation-Thickness])
|
484
|
+
end
|
485
|
+
|
486
|
+
def cylinder_insulation_type
|
487
|
+
xpath(%w[Hot-Water-Store-Insulation-Type])
|
488
|
+
end
|
489
|
+
|
490
|
+
def cylinder_size
|
491
|
+
xpath(%w[Hot-Water-Store-Size])
|
492
|
+
end
|
493
|
+
|
494
|
+
def has_cylinder_thermostat
|
495
|
+
xpath(%w[Has-Cylinder-Thermostat])
|
496
|
+
end
|
497
|
+
|
498
|
+
def mech_vent_sys_index_number
|
499
|
+
xpath(%w[Mechanical-Vent-System-Index-Number])
|
500
|
+
end
|
501
|
+
|
502
|
+
def mechanical_vent_data_source
|
503
|
+
xpath(%w[Mechanical-Ventilation-Data-Source])
|
504
|
+
end
|
505
|
+
|
506
|
+
def thermal_store
|
507
|
+
xpath(%w[Thermal-Store])
|
508
|
+
end
|
509
|
+
|
510
|
+
def ventilation_type
|
511
|
+
xpath(%w[Ventilation-Type])
|
512
|
+
end
|
481
513
|
end
|
482
514
|
end
|
483
515
|
end
|
@@ -267,10 +267,6 @@ module ViewModel
|
|
267
267
|
"SAP"
|
268
268
|
end
|
269
269
|
|
270
|
-
def water_heating_code
|
271
|
-
xpath(%w[Water-Heating-Code])
|
272
|
-
end
|
273
|
-
|
274
270
|
def immersion_heating_type
|
275
271
|
xpath(%w[Immersion-Heating-Type])
|
276
272
|
end
|
@@ -542,6 +538,38 @@ module ViewModel
|
|
542
538
|
end
|
543
539
|
nil
|
544
540
|
end
|
541
|
+
|
542
|
+
def cylinder_insul_thickness
|
543
|
+
xpath(%w[Hot-Water-Store-Insulation-Thickness])
|
544
|
+
end
|
545
|
+
|
546
|
+
def cylinder_insulation_type
|
547
|
+
xpath(%w[Hot-Water-Store-Insulation-Type])
|
548
|
+
end
|
549
|
+
|
550
|
+
def cylinder_size
|
551
|
+
xpath(%w[Hot-Water-Store-Size])
|
552
|
+
end
|
553
|
+
|
554
|
+
def has_cylinder_thermostat
|
555
|
+
xpath(%w[Has-Cylinder-Thermostat])
|
556
|
+
end
|
557
|
+
|
558
|
+
def mech_vent_sys_index_number
|
559
|
+
xpath(%w[Mechanical-Vent-System-Index-Number])
|
560
|
+
end
|
561
|
+
|
562
|
+
def mechanical_vent_data_source
|
563
|
+
xpath(%w[Mechanical-Ventilation-Data-Source])
|
564
|
+
end
|
565
|
+
|
566
|
+
def thermal_store
|
567
|
+
xpath(%w[Thermal-Store])
|
568
|
+
end
|
569
|
+
|
570
|
+
def ventilation_type
|
571
|
+
xpath(%w[Ventilation-Type])
|
572
|
+
end
|
545
573
|
end
|
546
574
|
end
|
547
575
|
end
|
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.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MHCLG Energy Performance of Buildings
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -45,9 +45,11 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
+
- ".buildspec.yml"
|
48
49
|
- ".gitignore"
|
49
50
|
- ".rspec"
|
50
51
|
- ".rubocop.yml"
|
52
|
+
- ".ruby-version"
|
51
53
|
- Gemfile
|
52
54
|
- Gemfile.lock
|
53
55
|
- LICENSE
|