epb_view_models 2.2.6 → 2.2.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c096ef413da7f2a548ce97f5e7995b94da4812ebc8c91981f6e820103f5929a
4
- data.tar.gz: 04b3987de68b99d818d36778e22847aaf36a239ed67500891f0aab4ba6478230
3
+ metadata.gz: 4223417e292c8790501726912b281cb572d5f503cd4ebf6e5c4c3c73b22172a9
4
+ data.tar.gz: e34f268247f2ed0b73f70537ec61779d10111c72c09acfefcb930231fe1613d0
5
5
  SHA512:
6
- metadata.gz: 9e0f4ab064576530a8cd4595f96850969d668743e62e16d6c50e15995da6acf00ed2b0a285bbfbc1e271d15f6b74c54e874d2714a41d1730e780276ca100b69d
7
- data.tar.gz: 70a76f3d517b5020b7a723f39b46a1627506c7c435910a5aff6d7f7a3fc80a7cd4a97f9b7a63828a65b54e45bba78dced0157ebdb09fe114508410f14ee9fbdd
6
+ metadata.gz: e7955add690b09f87840b1387287b541663c1d2075072a819c96dd1f91b727642b31c4583dd7a9261adb379d2a3b013ceb9e72595368427192f3f7c9b1e38313
7
+ data.tar.gz: d6b2211acff2408596406a987d3d9ee6af18ea9d110eb91088d9c8a171bd2b1950190c1de3849aa3e6797e0372ffb7db05068132493b60ffd215ec2cd75c8035
@@ -5,7 +5,7 @@ loader = Zeitwerk::Loader.for_gem(warn_on_extra_files: false)
5
5
  loader.setup
6
6
 
7
7
  module EpbViewModels
8
- VERSION = "2.2.6"
8
+ VERSION = "2.2.7"
9
9
  end
10
10
 
11
11
  # Monkey patching to avoid using ActiveRecord::Type::Boolean.new.cast
@@ -16,6 +16,7 @@ module Presenter
16
16
  report_type: @view_model.report_type,
17
17
  date_of_assessment: @view_model.assessment_date,
18
18
  plan_report_date: @view_model.plan_report_date,
19
+ delegated_protocol_date: @view_model.delegated_protocol_date,
19
20
  address: {
20
21
  address_line1: @view_model.address_line1,
21
22
  address_line2: @view_model.address_line2,
@@ -25,6 +25,10 @@ module ViewModel
25
25
  xpath(%w[Report-Header Plan-Report-Date])
26
26
  end
27
27
 
28
+ def delegated_protocol_date
29
+ xpath(%w[Delegated-Protocol-Date])
30
+ end
31
+
28
32
  def report_type
29
33
  xpath(%w[Report-Header Report-Type])
30
34
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epb_view_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.6
4
+ version: 2.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - MHCLG Energy Performance of Buildings