epb_view_models 1.2.0 → 1.2.1
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/lib/epb_view_models.rb +1 -1
- data/lib/presenter/rd_sap/summary.rb +2 -0
- data/lib/presenter/sap/summary.rb +2 -0
- data/lib/view_model/rd_sap_schema_170/common_schema.rb +8 -0
- data/lib/view_model/rd_sap_schema_171/common_schema.rb +8 -0
- data/lib/view_model/rd_sap_schema_180/common_schema.rb +8 -0
- data/lib/view_model/rd_sap_schema_190/common_schema.rb +8 -0
- data/lib/view_model/rd_sap_schema_200/common_schema.rb +8 -0
- data/lib/view_model/rd_sap_schema_210/common_schema.rb +8 -0
- data/lib/view_model/rd_sap_schema_ni_173/common_schema.rb +8 -0
- data/lib/view_model/rd_sap_schema_ni_174/common_schema.rb +8 -0
- data/lib/view_model/rd_sap_schema_ni_180/common_schema.rb +8 -0
- data/lib/view_model/rd_sap_schema_ni_190/common_schema.rb +8 -0
- data/lib/view_model/rd_sap_schema_ni_200/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_102/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_110/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_112/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_120/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_130/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_140/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_141/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_142/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_150/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_160/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_161/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_162/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_163/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_170/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_171/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_1800/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_1900/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_1910/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_ni_112/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_ni_120/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_ni_130/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_ni_140/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_ni_141/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_ni_142/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_ni_150/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_ni_160/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_ni_161/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_ni_170/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_ni_171/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_ni_172/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_ni_173/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_ni_174/common_schema.rb +8 -0
- data/lib/view_model/sap_schema_ni_1800/common_schema.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 69842d75696d6f7e922b3b3d93c4301da15017f63ecfac51eeddcbe0dc10ba81
|
|
4
|
+
data.tar.gz: 0337bc45cffd6c0b3d61f7eb6e1c759597395b7c40c7187c6f7e274c9e25f22c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: de4ef827342f795a028984f6be18a36b99ebc07eff4aedeb8f72bf3a16a115e21fc22ec1b0e8fff66ca7d43f55904b157d6cbf4697854246691a7608cb959c46
|
|
7
|
+
data.tar.gz: cc548ce387bf14fcd410311c19e37fbe23ad1cabc54a75494649fe476ef200effcb27843de97bd840d4ef134624c00c263a1d200d905d68124677496bd36cbd0
|
data/lib/epb_view_models.rb
CHANGED
|
@@ -112,6 +112,8 @@ module Presenter
|
|
|
112
112
|
environmental_impact_potential:
|
|
113
113
|
@view_model.environmental_impact_potential,
|
|
114
114
|
addendum: @view_model.addendum,
|
|
115
|
+
gas_smart_meter_present: @view_model.gas_smart_meter_present,
|
|
116
|
+
electricity_smart_meter_present: @view_model.electricity_smart_meter_present,
|
|
115
117
|
}
|
|
116
118
|
end
|
|
117
119
|
|
|
@@ -159,6 +159,8 @@ module Presenter
|
|
|
159
159
|
@view_model.extensions_count
|
|
160
160
|
end,
|
|
161
161
|
addendum: @view_model.addendum,
|
|
162
|
+
gas_smart_meter_present: @view_model.gas_smart_meter_present,
|
|
163
|
+
electricity_smart_meter_present: @view_model.electricity_smart_meter_present,
|
|
162
164
|
}
|
|
163
165
|
end
|
|
164
166
|
|
|
@@ -582,6 +582,14 @@ module ViewModel
|
|
|
582
582
|
def has_cylinder_thermostat
|
|
583
583
|
xpath(%w[Cylinder-Thermostat])
|
|
584
584
|
end
|
|
585
|
+
|
|
586
|
+
def gas_smart_meter_present
|
|
587
|
+
xpath(%w[Gas-Smart-Meter-Present])
|
|
588
|
+
end
|
|
589
|
+
|
|
590
|
+
def electricity_smart_meter_present
|
|
591
|
+
xpath(%w[Electricity-Smart-Meter-Present])
|
|
592
|
+
end
|
|
585
593
|
end
|
|
586
594
|
end
|
|
587
595
|
end
|
|
@@ -487,6 +487,14 @@ module ViewModel
|
|
|
487
487
|
.search("Main-Heating/Environmental-Efficiency-Rating")
|
|
488
488
|
.map(&:content)
|
|
489
489
|
end
|
|
490
|
+
|
|
491
|
+
def gas_smart_meter_present
|
|
492
|
+
nil
|
|
493
|
+
end
|
|
494
|
+
|
|
495
|
+
def electricity_smart_meter_present
|
|
496
|
+
nil
|
|
497
|
+
end
|
|
490
498
|
end
|
|
491
499
|
end
|
|
492
500
|
end
|
|
@@ -501,6 +501,14 @@ module ViewModel
|
|
|
501
501
|
.search("Main-Heating/Environmental-Efficiency-Rating")
|
|
502
502
|
.map(&:content)
|
|
503
503
|
end
|
|
504
|
+
|
|
505
|
+
def gas_smart_meter_present
|
|
506
|
+
nil
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
def electricity_smart_meter_present
|
|
510
|
+
nil
|
|
511
|
+
end
|
|
504
512
|
end
|
|
505
513
|
end
|
|
506
514
|
end
|
|
@@ -500,6 +500,14 @@ module ViewModel
|
|
|
500
500
|
.search("Main-Heating-Controls/Environmental-Efficiency-Rating")
|
|
501
501
|
.map(&:content)
|
|
502
502
|
end
|
|
503
|
+
|
|
504
|
+
def gas_smart_meter_present
|
|
505
|
+
nil
|
|
506
|
+
end
|
|
507
|
+
|
|
508
|
+
def electricity_smart_meter_present
|
|
509
|
+
nil
|
|
510
|
+
end
|
|
503
511
|
end
|
|
504
512
|
end
|
|
505
513
|
end
|
|
@@ -500,6 +500,14 @@ module ViewModel
|
|
|
500
500
|
.search("Main-Heating/Environmental-Efficiency-Rating")
|
|
501
501
|
.map(&:content)
|
|
502
502
|
end
|
|
503
|
+
|
|
504
|
+
def gas_smart_meter_present
|
|
505
|
+
nil
|
|
506
|
+
end
|
|
507
|
+
|
|
508
|
+
def electricity_smart_meter_present
|
|
509
|
+
nil
|
|
510
|
+
end
|
|
503
511
|
end
|
|
504
512
|
end
|
|
505
513
|
end
|
|
@@ -500,6 +500,14 @@ module ViewModel
|
|
|
500
500
|
.search("Main-Heating/Environmental-Efficiency-Rating")
|
|
501
501
|
.map(&:content)
|
|
502
502
|
end
|
|
503
|
+
|
|
504
|
+
def gas_smart_meter_present
|
|
505
|
+
nil
|
|
506
|
+
end
|
|
507
|
+
|
|
508
|
+
def electricity_smart_meter_present
|
|
509
|
+
nil
|
|
510
|
+
end
|
|
503
511
|
end
|
|
504
512
|
end
|
|
505
513
|
end
|
|
@@ -500,6 +500,14 @@ module ViewModel
|
|
|
500
500
|
.search("Main-Heating/Environmental-Efficiency-Rating")
|
|
501
501
|
.map(&:content)
|
|
502
502
|
end
|
|
503
|
+
|
|
504
|
+
def gas_smart_meter_present
|
|
505
|
+
nil
|
|
506
|
+
end
|
|
507
|
+
|
|
508
|
+
def electricity_smart_meter_present
|
|
509
|
+
nil
|
|
510
|
+
end
|
|
503
511
|
end
|
|
504
512
|
end
|
|
505
513
|
end
|
|
@@ -500,6 +500,14 @@ module ViewModel
|
|
|
500
500
|
.search("Main-Heating/Environmental-Efficiency-Rating")
|
|
501
501
|
.map(&:content)
|
|
502
502
|
end
|
|
503
|
+
|
|
504
|
+
def gas_smart_meter_present
|
|
505
|
+
nil
|
|
506
|
+
end
|
|
507
|
+
|
|
508
|
+
def electricity_smart_meter_present
|
|
509
|
+
nil
|
|
510
|
+
end
|
|
503
511
|
end
|
|
504
512
|
end
|
|
505
513
|
end
|
|
@@ -500,6 +500,14 @@ module ViewModel
|
|
|
500
500
|
.search("Property-Summary/Floor/Environmental-Efficiency-Rating")
|
|
501
501
|
.map(&:content)
|
|
502
502
|
end
|
|
503
|
+
|
|
504
|
+
def gas_smart_meter_present
|
|
505
|
+
nil
|
|
506
|
+
end
|
|
507
|
+
|
|
508
|
+
def electricity_smart_meter_present
|
|
509
|
+
nil
|
|
510
|
+
end
|
|
503
511
|
end
|
|
504
512
|
end
|
|
505
513
|
end
|
|
@@ -627,6 +627,14 @@ module ViewModel
|
|
|
627
627
|
def ventilation_type
|
|
628
628
|
xpath(%w[Ventilation-Type])
|
|
629
629
|
end
|
|
630
|
+
|
|
631
|
+
def gas_smart_meter_present
|
|
632
|
+
xpath(%w[Gas-Smart-Meter-Present])
|
|
633
|
+
end
|
|
634
|
+
|
|
635
|
+
def electricity_smart_meter_present
|
|
636
|
+
xpath(%w[Electricity-Smart-Meter-Present])
|
|
637
|
+
end
|
|
630
638
|
end
|
|
631
639
|
end
|
|
632
640
|
end
|
|
@@ -627,6 +627,14 @@ module ViewModel
|
|
|
627
627
|
def ventilation_type
|
|
628
628
|
xpath(%w[Ventilation-Type])
|
|
629
629
|
end
|
|
630
|
+
|
|
631
|
+
def gas_smart_meter_present
|
|
632
|
+
xpath(%w[Gas-Smart-Meter-Present])
|
|
633
|
+
end
|
|
634
|
+
|
|
635
|
+
def electricity_smart_meter_present
|
|
636
|
+
xpath(%w[Electricity-Smart-Meter-Present])
|
|
637
|
+
end
|
|
630
638
|
end
|
|
631
639
|
end
|
|
632
640
|
end
|
|
@@ -492,6 +492,14 @@ module ViewModel
|
|
|
492
492
|
.search("Main-Heating-Controls/Environmental-Efficiency-Rating")
|
|
493
493
|
.map(&:content)
|
|
494
494
|
end
|
|
495
|
+
|
|
496
|
+
def gas_smart_meter_present
|
|
497
|
+
nil
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
def electricity_smart_meter_present
|
|
501
|
+
nil
|
|
502
|
+
end
|
|
495
503
|
end
|
|
496
504
|
end
|
|
497
505
|
end
|
|
@@ -488,6 +488,14 @@ module ViewModel
|
|
|
488
488
|
.search("Main-Heating-Controls/Environmental-Efficiency-Rating")
|
|
489
489
|
.map(&:content)
|
|
490
490
|
end
|
|
491
|
+
|
|
492
|
+
def gas_smart_meter_present
|
|
493
|
+
nil
|
|
494
|
+
end
|
|
495
|
+
|
|
496
|
+
def electricity_smart_meter_present
|
|
497
|
+
nil
|
|
498
|
+
end
|
|
491
499
|
end
|
|
492
500
|
end
|
|
493
501
|
end
|
|
@@ -485,6 +485,14 @@ module ViewModel
|
|
|
485
485
|
.search("Main-Heating-Controls/Environmental-Efficiency-Rating")
|
|
486
486
|
.map(&:content)
|
|
487
487
|
end
|
|
488
|
+
|
|
489
|
+
def gas_smart_meter_present
|
|
490
|
+
nil
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
def electricity_smart_meter_present
|
|
494
|
+
nil
|
|
495
|
+
end
|
|
488
496
|
end
|
|
489
497
|
end
|
|
490
498
|
end
|
|
@@ -485,6 +485,14 @@ module ViewModel
|
|
|
485
485
|
.search("Main-Heating-Controls/Environmental-Efficiency-Rating")
|
|
486
486
|
.map(&:content)
|
|
487
487
|
end
|
|
488
|
+
|
|
489
|
+
def gas_smart_meter_present
|
|
490
|
+
nil
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
def electricity_smart_meter_present
|
|
494
|
+
nil
|
|
495
|
+
end
|
|
488
496
|
end
|
|
489
497
|
end
|
|
490
498
|
end
|
|
@@ -485,6 +485,14 @@ module ViewModel
|
|
|
485
485
|
.search("Main-Heating-Controls/Environmental-Efficiency-Rating")
|
|
486
486
|
.map(&:content)
|
|
487
487
|
end
|
|
488
|
+
|
|
489
|
+
def gas_smart_meter_present
|
|
490
|
+
nil
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
def electricity_smart_meter_present
|
|
494
|
+
nil
|
|
495
|
+
end
|
|
488
496
|
end
|
|
489
497
|
end
|
|
490
498
|
end
|
|
@@ -485,6 +485,14 @@ module ViewModel
|
|
|
485
485
|
.search("Main-Heating-Controls/Environmental-Efficiency-Rating")
|
|
486
486
|
.map(&:content)
|
|
487
487
|
end
|
|
488
|
+
|
|
489
|
+
def gas_smart_meter_present
|
|
490
|
+
nil
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
def electricity_smart_meter_present
|
|
494
|
+
nil
|
|
495
|
+
end
|
|
488
496
|
end
|
|
489
497
|
end
|
|
490
498
|
end
|
|
@@ -485,6 +485,14 @@ module ViewModel
|
|
|
485
485
|
.search("Main-Heating-Controls/Environmental-Efficiency-Rating")
|
|
486
486
|
.map(&:content)
|
|
487
487
|
end
|
|
488
|
+
|
|
489
|
+
def gas_smart_meter_present
|
|
490
|
+
nil
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
def electricity_smart_meter_present
|
|
494
|
+
nil
|
|
495
|
+
end
|
|
488
496
|
end
|
|
489
497
|
end
|
|
490
498
|
end
|
|
@@ -480,6 +480,14 @@ module ViewModel
|
|
|
480
480
|
.search("Main-Heating-Controls/Environmental-Efficiency-Rating")
|
|
481
481
|
.map(&:content)
|
|
482
482
|
end
|
|
483
|
+
|
|
484
|
+
def gas_smart_meter_present
|
|
485
|
+
nil
|
|
486
|
+
end
|
|
487
|
+
|
|
488
|
+
def electricity_smart_meter_present
|
|
489
|
+
nil
|
|
490
|
+
end
|
|
483
491
|
end
|
|
484
492
|
end
|
|
485
493
|
end
|
|
@@ -476,6 +476,14 @@ module ViewModel
|
|
|
476
476
|
.search("Main-Heating-Controls/Environmental-Efficiency-Rating")
|
|
477
477
|
.map(&:content)
|
|
478
478
|
end
|
|
479
|
+
|
|
480
|
+
def gas_smart_meter_present
|
|
481
|
+
nil
|
|
482
|
+
end
|
|
483
|
+
|
|
484
|
+
def electricity_smart_meter_present
|
|
485
|
+
nil
|
|
486
|
+
end
|
|
479
487
|
end
|
|
480
488
|
end
|
|
481
489
|
end
|
|
@@ -485,6 +485,14 @@ module ViewModel
|
|
|
485
485
|
.search("Main-Heating-Controls/Environmental-Efficiency-Rating")
|
|
486
486
|
.map(&:content)
|
|
487
487
|
end
|
|
488
|
+
|
|
489
|
+
def gas_smart_meter_present
|
|
490
|
+
nil
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
def electricity_smart_meter_present
|
|
494
|
+
nil
|
|
495
|
+
end
|
|
488
496
|
end
|
|
489
497
|
end
|
|
490
498
|
end
|
|
@@ -485,6 +485,14 @@ module ViewModel
|
|
|
485
485
|
.search("Main-Heating-Controls/Environmental-Efficiency-Rating")
|
|
486
486
|
.map(&:content)
|
|
487
487
|
end
|
|
488
|
+
|
|
489
|
+
def gas_smart_meter_present
|
|
490
|
+
nil
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
def electricity_smart_meter_present
|
|
494
|
+
nil
|
|
495
|
+
end
|
|
488
496
|
end
|
|
489
497
|
end
|
|
490
498
|
end
|
|
@@ -485,6 +485,14 @@ module ViewModel
|
|
|
485
485
|
.search("Main-Heating-Controls/Environmental-Efficiency-Rating")
|
|
486
486
|
.map(&:content)
|
|
487
487
|
end
|
|
488
|
+
|
|
489
|
+
def gas_smart_meter_present
|
|
490
|
+
nil
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
def electricity_smart_meter_present
|
|
494
|
+
nil
|
|
495
|
+
end
|
|
488
496
|
end
|
|
489
497
|
end
|
|
490
498
|
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.2.
|
|
4
|
+
version: 1.2.1
|
|
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: 2024-02-
|
|
11
|
+
date: 2024-02-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|