epb_view_models 2.8.0 → 2.8.2

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: 72dc976d356bea4617073bd241627defc50aea7862bd09a05ce0565f2115f3e2
4
- data.tar.gz: b571059e6bce6fac55edda2a14c5f6dc7299cc6dae2a926d6b6e8f2616c3925e
3
+ metadata.gz: 47220f8d74b506c7ebc80d55efbbaa37a043265d5873367ddfb12ea7afa5ceda
4
+ data.tar.gz: fc4c561279313f97ee1265a49f9e7c1ded9d0791c0388f2aae54aa9d24616e70
5
5
  SHA512:
6
- metadata.gz: 7a1fade3d5ca524e8fd5ee27445f27150d2e30c84337700bb553fc11f413d6304a0dbc64655a5a53f8a26815ac2d9093e39dbfd62452282f2c3b75388799c9ca
7
- data.tar.gz: 8992441c00335b68acfbbdb7caf561a42b1fa8b085b078f4b1b87e2f586824fbc79ac11cdc77677e80d0330b5f88f3ea0cfea4e43bc7cfc329193500de733cd5
6
+ metadata.gz: fd4d55c619a5de48f3cf8f866b80a7a4389445cf4c4a43083cacf93b589e661a34ac557080925c757523cd3f8470b523a0ea2f91f048e05f888c75d424970390
7
+ data.tar.gz: dc6c849ba794935ba96dc6cad28ef285dc045f68de618083359ef485c425df7f15f3271409aac14ce512ad2aec3ba46a01302469801b2b04fe22942ea9184f5c
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <xs:schema xmlns="https://epbr.digital.communities.gov.uk/xsd/dec-summary-s"
2
+ <xs:schema xmlns="https://epbr.digital.communities.gov.uk/xsd/dec-summary"
3
3
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
4
- targetNamespace="https://epbr.digital.communities.gov.uk/xsd/dec-summary-s"
4
+ targetNamespace="https://epbr.digital.communities.gov.uk/xsd/dec-summary"
5
5
  elementFormDefault="qualified"
6
6
  attributeFormDefault="unqualified"
7
7
  version="DECAR-S-8.0.0">
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EpbViewModels
4
- VERSION = "2.8.0"
4
+ VERSION = "2.8.2"
5
5
  end
@@ -96,6 +96,7 @@ module Presenter
96
96
  new_build_benchmark_rating: @view_model.new_build_rating,
97
97
  new_build_benchmark_band: @view_model.new_build_benchmark_band,
98
98
  comparative_asset_rating: @view_model.comparative_asset_rating,
99
+ comparative_asset_band: @view_model.comparative_asset_band,
99
100
  epc_rating_ber: @view_model.epc_rating_ber,
100
101
  approximate_energy_use: @view_model.approximate_energy_use,
101
102
  property_type: {
@@ -48,7 +48,7 @@ module ViewModel
48
48
  end
49
49
 
50
50
  def floor_area
51
- xpath(%w[Technical-Information Floor-Area])&.to_i
51
+ xpath(%w[Technical-Information Floor-Area])&.to_f
52
52
  end
53
53
 
54
54
  def main_heating_fuel
@@ -48,7 +48,7 @@ module ViewModel
48
48
  end
49
49
 
50
50
  def floor_area
51
- xpath(%w[Technical-Information Floor-Area])&.to_i
51
+ xpath(%w[Technical-Information Floor-Area])&.to_f
52
52
  end
53
53
 
54
54
  def main_heating_fuel
@@ -48,7 +48,7 @@ module ViewModel
48
48
  end
49
49
 
50
50
  def floor_area
51
- xpath(%w[Technical-Information Floor-Area])&.to_i
51
+ xpath(%w[Technical-Information Floor-Area])&.to_f
52
52
  end
53
53
 
54
54
  def main_heating_fuel
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.8.0
4
+ version: 2.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - MHCLG Energy Performance of Buildings