epb_view_models 1.2.0 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/epb_view_models.rb +1 -1
- data/lib/helper/to_bool.rb +12 -0
- 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 +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57c41aeb5139992344e4f24f10c3d228ed16be53897797385772e072058ced42
|
4
|
+
data.tar.gz: 4cf9250ab8506ba2d1e3fe12cbf941bb08fab056566817ecdf39197d827c50b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dc0258c499b17ebca6f2e9d36bb963d359c6a9ca07cbfdd4644c4e1d2db6315248b449841abe7694a1b8a050a27d7795e15773c9cc983f0e65bc10156c00f30
|
7
|
+
data.tar.gz: a6c60a5dac44e2a9e7df2484cc228cff56298a118820f3763ffc0137f20962fac9b00f0dd07f21b9f2b1e658b3abc07338774b7959001083c7fb6ad7d607f7a8
|
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
|
+
Helper::ToBool.execute(xpath(%w[Gas-Smart-Meter-Present]))
|
588
|
+
end
|
589
|
+
|
590
|
+
def electricity_smart_meter_present
|
591
|
+
Helper::ToBool.execute(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
|
+
Helper::ToBool.execute(xpath(%w[Gas-Smart-Meter-Present]))
|
633
|
+
end
|
634
|
+
|
635
|
+
def electricity_smart_meter_present
|
636
|
+
Helper::ToBool.execute(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
|
+
Helper::ToBool.execute(xpath(%w[Gas-Smart-Meter-Present]))
|
633
|
+
end
|
634
|
+
|
635
|
+
def electricity_smart_meter_present
|
636
|
+
Helper::ToBool.execute(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.2
|
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-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -1674,6 +1674,7 @@ files:
|
|
1674
1674
|
- lib/helper/estimated_cost_potential_saving_helper.rb
|
1675
1675
|
- lib/helper/rrn_helper.rb
|
1676
1676
|
- lib/helper/schema_list_helper.rb
|
1677
|
+
- lib/helper/to_bool.rb
|
1677
1678
|
- lib/helper/xml_enums_to_output.rb
|
1678
1679
|
- lib/presenter/ac_cert/export_configuration.rb
|
1679
1680
|
- lib/presenter/ac_cert/summary.rb
|