epb_view_models 1.0.24 → 1.0.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/Gemfile.lock +1 -1
  4. data/epb_view_models.gemspec +1 -1
  5. data/lib/epb_view_models.rb +1 -1
  6. data/lib/presenter/dec/report.rb +1 -0
  7. data/lib/presenter/rd_sap/domestic_digest.rb +1 -0
  8. data/lib/presenter/sap/domestic_digest.rb +1 -0
  9. data/lib/view_model/rd_sap_schema_170/common_schema.rb +1 -3
  10. data/lib/view_model/rd_sap_schema_171/common_schema.rb +1 -3
  11. data/lib/view_model/rd_sap_schema_180/common_schema.rb +1 -3
  12. data/lib/view_model/rd_sap_schema_190/common_schema.rb +1 -3
  13. data/lib/view_model/rd_sap_schema_200/common_schema.rb +1 -3
  14. data/lib/view_model/rd_sap_schema_ni_173/common_schema.rb +1 -3
  15. data/lib/view_model/rd_sap_schema_ni_174/common_schema.rb +1 -3
  16. data/lib/view_model/rd_sap_schema_ni_180/common_schema.rb +1 -3
  17. data/lib/view_model/rd_sap_schema_ni_190/common_schema.rb +1 -3
  18. data/lib/view_model/rd_sap_schema_ni_200/common_schema.rb +1 -3
  19. data/lib/view_model/sap_schema_102/common_schema.rb +1 -3
  20. data/lib/view_model/sap_schema_110/common_schema.rb +1 -3
  21. data/lib/view_model/sap_schema_112/common_schema.rb +1 -3
  22. data/lib/view_model/sap_schema_120/common_schema.rb +1 -3
  23. data/lib/view_model/sap_schema_130/common_schema.rb +1 -3
  24. data/lib/view_model/sap_schema_140/common_schema.rb +1 -3
  25. data/lib/view_model/sap_schema_141/common_schema.rb +1 -3
  26. data/lib/view_model/sap_schema_142/common_schema.rb +1 -3
  27. data/lib/view_model/sap_schema_150/common_schema.rb +1 -3
  28. data/lib/view_model/sap_schema_160/common_schema.rb +1 -3
  29. data/lib/view_model/sap_schema_161/common_schema.rb +1 -3
  30. data/lib/view_model/sap_schema_162/common_schema.rb +1 -3
  31. data/lib/view_model/sap_schema_163/common_schema.rb +1 -3
  32. data/lib/view_model/sap_schema_170/common_schema.rb +1 -3
  33. data/lib/view_model/sap_schema_171/common_schema.rb +1 -3
  34. data/lib/view_model/sap_schema_1800/common_schema.rb +1 -3
  35. data/lib/view_model/sap_schema_1900/common_schema.rb +1 -3
  36. data/lib/view_model/sap_schema_ni_112/common_schema.rb +1 -3
  37. data/lib/view_model/sap_schema_ni_120/common_schema.rb +1 -3
  38. data/lib/view_model/sap_schema_ni_130/common_schema.rb +1 -3
  39. data/lib/view_model/sap_schema_ni_140/common_schema.rb +1 -3
  40. data/lib/view_model/sap_schema_ni_141/common_schema.rb +1 -3
  41. data/lib/view_model/sap_schema_ni_142/common_schema.rb +1 -3
  42. data/lib/view_model/sap_schema_ni_150/common_schema.rb +1 -3
  43. data/lib/view_model/sap_schema_ni_160/common_schema.rb +1 -3
  44. data/lib/view_model/sap_schema_ni_161/common_schema.rb +1 -3
  45. data/lib/view_model/sap_schema_ni_170/common_schema.rb +1 -3
  46. data/lib/view_model/sap_schema_ni_171/common_schema.rb +1 -3
  47. data/lib/view_model/sap_schema_ni_172/common_schema.rb +1 -3
  48. data/lib/view_model/sap_schema_ni_173/common_schema.rb +1 -3
  49. data/lib/view_model/sap_schema_ni_174/common_schema.rb +1 -3
  50. data/lib/view_model/sap_schema_ni_1800/common_schema.rb +1 -3
  51. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b48d79bf405993c8119c2c489e6600936d5c587ddaac8283cfc2f88c66addc3
4
- data.tar.gz: 352e1e1843619360d56da07acf89c762494b691d7d73e723f49eb3b752de8aa5
3
+ metadata.gz: 97ea4d69a165b70282d3b172bc797b1e61a4e556aac85306b62c70ff4a3e57ff
4
+ data.tar.gz: fd06f290bf0c1fe7d0f7753187bf3dcba7767d6d8cab9a8fa56fbd63de0363e0
5
5
  SHA512:
6
- metadata.gz: 4b3e94cf082e6b6f82e37ba7d57a83f00bdff9a35b8906faba86eddcfa549dfbfbc78dfd5ab7c1611e2904b2ea41143f9ef73fab2d94eab9d76aeaa97b2386f6
7
- data.tar.gz: da55d861188f811379556f6f86fd1c6d2f08fc6627e32f706973d8d2aba2fa8ace9a8946ec322a72a51ab385b0f854ded9e8f7e4e07c415bde7a9009ed7d4c37
6
+ metadata.gz: 9119e059121894e63845f89a2f0b875ded1c603291063548952fdcedbb0257c2e2d32bb17f5383e6aa3d08c673f38e619a8a507ca0ff0309a647f894697f3add
7
+ data.tar.gz: 51cc8e5f6c20bbbe25da3d716c50af89714988ab718229614a5c3fc8687978da9d6d868350b3eda331f081878971cc4753b07d3d4364bf300825e49c4a1ddd0c
data/Gemfile CHANGED
@@ -12,4 +12,4 @@ end
12
12
 
13
13
  gem "nokogiri", "~> 1.11"
14
14
  gem "rexml", "~> 3.2", ">= 3.2.5"
15
- gem "zeitwerk", "~> 2.4"
15
+ gem "zeitwerk", "~> 2.6"
data/Gemfile.lock CHANGED
@@ -80,7 +80,7 @@ DEPENDENCIES
80
80
  rexml (~> 3.2, >= 3.2.5)
81
81
  rspec (~> 3.0)
82
82
  rubocop-govuk (~> 4.7.0)
83
- zeitwerk (~> 2.4)
83
+ zeitwerk (~> 2.6)
84
84
 
85
85
  RUBY VERSION
86
86
  ruby 2.7.5p203
@@ -22,5 +22,5 @@ Gem::Specification.new do |spec|
22
22
  spec.require_paths = %w[lib]
23
23
 
24
24
  spec.add_dependency "nokogiri", "~> 1.11"
25
- spec.add_dependency "zeitwerk", "~> 2.4"
25
+ spec.add_dependency "zeitwerk", "~> 2.6"
26
26
  end
@@ -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 = "1.0.24"
8
+ VERSION = "1.0.26"
9
9
  end
10
10
 
11
11
  # Monkey patching to avoid using ActiveRecord::Type::Boolean.new.cast
@@ -69,6 +69,7 @@ module Presenter
69
69
  building_environment: @view_model.building_environment,
70
70
  building_category: @view_model.building_category,
71
71
  report_type: @view_model.report_type,
72
+ reason_type: @view_model.all_reason_types.first,
72
73
  other_fuel: @view_model.other_fuel,
73
74
  }
74
75
  end
@@ -37,6 +37,7 @@ module Presenter
37
37
  has_hot_water_cylinder: @view_model.has_hot_water_cylinder,
38
38
  total_floor_area: @view_model.total_floor_area.to_s,
39
39
  has_mains_gas: @view_model.mains_gas,
40
+ current_energy_efficiency_rating: @view_model.current_energy_rating,
40
41
  }
41
42
  end
42
43
  end
@@ -34,6 +34,7 @@ module Presenter
34
34
  has_hot_water_cylinder: @view_model.has_hot_water_cylinder,
35
35
  total_floor_area: @view_model.total_floor_area.to_s,
36
36
  has_mains_gas: @view_model.mains_gas,
37
+ current_energy_efficiency_rating: @view_model.current_energy_rating,
37
38
  }
38
39
  end
39
40
  end
@@ -167,9 +167,7 @@ module ViewModel
167
167
  xpath(%w[Energy-Rating-Current]).to_i
168
168
  end
169
169
 
170
- def estimated_energy_cost
171
- xpath(%w[Estimated-Energy-Cost])
172
- end
170
+ def estimated_energy_cost; end
173
171
 
174
172
  def total_floor_area
175
173
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -167,9 +167,7 @@ module ViewModel
167
167
  xpath(%w[Energy-Rating-Current]).to_i
168
168
  end
169
169
 
170
- def estimated_energy_cost
171
- xpath(%w[Estimated-Energy-Cost])
172
- end
170
+ def estimated_energy_cost; end
173
171
 
174
172
  def total_floor_area
175
173
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -167,9 +167,7 @@ module ViewModel
167
167
  xpath(%w[Energy-Rating-Current]).to_i
168
168
  end
169
169
 
170
- def estimated_energy_cost
171
- xpath(%w[Estimated-Energy-Cost])
172
- end
170
+ def estimated_energy_cost; end
173
171
 
174
172
  def total_floor_area
175
173
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -167,9 +167,7 @@ module ViewModel
167
167
  xpath(%w[Energy-Rating-Current]).to_i
168
168
  end
169
169
 
170
- def estimated_energy_cost
171
- xpath(%w[Estimated-Energy-Cost])
172
- end
170
+ def estimated_energy_cost; end
173
171
 
174
172
  def total_floor_area
175
173
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -171,9 +171,7 @@ module ViewModel
171
171
  xpath(%w[Energy-Rating-Current]).to_i
172
172
  end
173
173
 
174
- def estimated_energy_cost
175
- xpath(%w[Estimated-Energy-Cost])
176
- end
174
+ def estimated_energy_cost; end
177
175
 
178
176
  def total_floor_area
179
177
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -152,9 +152,7 @@ module ViewModel
152
152
  xpath(%w[Energy-Rating-Current]).to_i
153
153
  end
154
154
 
155
- def estimated_energy_cost
156
- xpath(%w[Estimated-Energy-Cost])
157
- end
155
+ def estimated_energy_cost; end
158
156
 
159
157
  def total_floor_area
160
158
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -152,9 +152,7 @@ module ViewModel
152
152
  xpath(%w[Energy-Rating-Current]).to_i
153
153
  end
154
154
 
155
- def estimated_energy_cost
156
- xpath(%w[Estimated-Energy-Cost])
157
- end
155
+ def estimated_energy_cost; end
158
156
 
159
157
  def total_floor_area
160
158
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -152,9 +152,7 @@ module ViewModel
152
152
  xpath(%w[Energy-Rating-Current]).to_i
153
153
  end
154
154
 
155
- def estimated_energy_cost
156
- xpath(%w[Estimated-Energy-Cost])
157
- end
155
+ def estimated_energy_cost; end
158
156
 
159
157
  def total_floor_area
160
158
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -152,9 +152,7 @@ module ViewModel
152
152
  xpath(%w[Energy-Rating-Current]).to_i
153
153
  end
154
154
 
155
- def estimated_energy_cost
156
- xpath(%w[Estimated-Energy-Cost])
157
- end
155
+ def estimated_energy_cost; end
158
156
 
159
157
  def total_floor_area
160
158
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -158,9 +158,7 @@ module ViewModel
158
158
  xpath(%w[Energy-Rating-Current]).to_i
159
159
  end
160
160
 
161
- def estimated_energy_cost
162
- xpath(%w[Estimated-Energy-Cost])
163
- end
161
+ def estimated_energy_cost; end
164
162
 
165
163
  def total_floor_area
166
164
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -179,9 +179,7 @@ module ViewModel
179
179
  xpath(%w[Energy-Consumption-Potential])
180
180
  end
181
181
 
182
- def estimated_energy_cost
183
- xpath(%w[Estimated-Energy-Cost])
184
- end
182
+ def estimated_energy_cost; end
185
183
 
186
184
  def total_floor_area
187
185
  building_part_areas = @xml_doc.search("//SAP-Building-Part/SAP-Floor-Dimensions/SAP-Floor-Dimension/Total-Floor-Area").map(&:content)
@@ -179,9 +179,7 @@ module ViewModel
179
179
  xpath(%w[Energy-Consumption-Potential])
180
180
  end
181
181
 
182
- def estimated_energy_cost
183
- xpath(%w[Estimated-Energy-Cost])
184
- end
182
+ def estimated_energy_cost; end
185
183
 
186
184
  def total_floor_area
187
185
  building_part_areas = @xml_doc.search("//SAP-Building-Part/SAP-Floor-Dimensions/SAP-Floor-Dimension/Total-Floor-Area").map(&:content)
@@ -179,9 +179,7 @@ module ViewModel
179
179
  xpath(%w[Energy-Consumption-Potential])
180
180
  end
181
181
 
182
- def estimated_energy_cost
183
- xpath(%w[Estimated-Energy-Cost])
184
- end
182
+ def estimated_energy_cost; end
185
183
 
186
184
  def total_floor_area
187
185
  building_part_areas = @xml_doc.search("//SAP-Building-Part/SAP-Floor-Dimensions/SAP-Floor-Dimension/Total-Floor-Area").map(&:content)
@@ -179,9 +179,7 @@ module ViewModel
179
179
  xpath(%w[Energy-Consumption-Potential])
180
180
  end
181
181
 
182
- def estimated_energy_cost
183
- xpath(%w[Estimated-Energy-Cost])
184
- end
182
+ def estimated_energy_cost; end
185
183
 
186
184
  def total_floor_area
187
185
  building_part_areas = @xml_doc.search("//SAP-Building-Part/SAP-Floor-Dimensions/SAP-Floor-Dimension/Total-Floor-Area").map(&:content)
@@ -179,9 +179,7 @@ module ViewModel
179
179
  xpath(%w[Energy-Consumption-Potential])
180
180
  end
181
181
 
182
- def estimated_energy_cost
183
- xpath(%w[Estimated-Energy-Cost])
184
- end
182
+ def estimated_energy_cost; end
185
183
 
186
184
  def total_floor_area
187
185
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -179,9 +179,7 @@ module ViewModel
179
179
  xpath(%w[Energy-Consumption-Potential])
180
180
  end
181
181
 
182
- def estimated_energy_cost
183
- xpath(%w[Estimated-Energy-Cost])
184
- end
182
+ def estimated_energy_cost; end
185
183
 
186
184
  def total_floor_area
187
185
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -179,9 +179,7 @@ module ViewModel
179
179
  xpath(%w[Energy-Consumption-Potential])
180
180
  end
181
181
 
182
- def estimated_energy_cost
183
- xpath(%w[Estimated-Energy-Cost])
184
- end
182
+ def estimated_energy_cost; end
185
183
 
186
184
  def total_floor_area
187
185
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -179,9 +179,7 @@ module ViewModel
179
179
  xpath(%w[Energy-Consumption-Potential])
180
180
  end
181
181
 
182
- def estimated_energy_cost
183
- xpath(%w[Estimated-Energy-Cost])
184
- end
182
+ def estimated_energy_cost; end
185
183
 
186
184
  def total_floor_area
187
185
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -179,9 +179,7 @@ module ViewModel
179
179
  xpath(%w[Energy-Consumption-Potential])
180
180
  end
181
181
 
182
- def estimated_energy_cost
183
- xpath(%w[Estimated-Energy-Cost])
184
- end
182
+ def estimated_energy_cost; end
185
183
 
186
184
  def total_floor_area
187
185
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -179,9 +179,7 @@ module ViewModel
179
179
  xpath(%w[Energy-Consumption-Potential])
180
180
  end
181
181
 
182
- def estimated_energy_cost
183
- xpath(%w[Estimated-Energy-Cost])
184
- end
182
+ def estimated_energy_cost; end
185
183
 
186
184
  def total_floor_area
187
185
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -170,9 +170,7 @@ module ViewModel
170
170
  xpath(%w[Energy-Consumption-Potential])
171
171
  end
172
172
 
173
- def estimated_energy_cost
174
- xpath(%w[Estimated-Energy-Cost])
175
- end
173
+ def estimated_energy_cost; end
176
174
 
177
175
  def total_floor_area
178
176
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -170,9 +170,7 @@ module ViewModel
170
170
  xpath(%w[Energy-Consumption-Potential])
171
171
  end
172
172
 
173
- def estimated_energy_cost
174
- xpath(%w[Estimated-Energy-Cost])
175
- end
173
+ def estimated_energy_cost; end
176
174
 
177
175
  def total_floor_area
178
176
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -170,9 +170,7 @@ module ViewModel
170
170
  xpath(%w[Energy-Consumption-Potential])
171
171
  end
172
172
 
173
- def estimated_energy_cost
174
- xpath(%w[Estimated-Energy-Cost])
175
- end
173
+ def estimated_energy_cost; end
176
174
 
177
175
  def total_floor_area
178
176
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -174,9 +174,7 @@ module ViewModel
174
174
  xpath(%w[Energy-Consumption-Potential])
175
175
  end
176
176
 
177
- def estimated_energy_cost
178
- xpath(%w[Estimated-Energy-Cost])
179
- end
177
+ def estimated_energy_cost; end
180
178
 
181
179
  def total_floor_area
182
180
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -174,9 +174,7 @@ module ViewModel
174
174
  xpath(%w[Energy-Consumption-Potential])
175
175
  end
176
176
 
177
- def estimated_energy_cost
178
- xpath(%w[Estimated-Energy-Cost])
179
- end
177
+ def estimated_energy_cost; end
180
178
 
181
179
  def total_floor_area
182
180
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -174,9 +174,7 @@ module ViewModel
174
174
  xpath(%w[Energy-Consumption-Potential])
175
175
  end
176
176
 
177
- def estimated_energy_cost
178
- xpath(%w[Estimated-Energy-Cost])
179
- end
177
+ def estimated_energy_cost; end
180
178
 
181
179
  def total_floor_area
182
180
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -176,9 +176,7 @@ module ViewModel
176
176
  xpath(%w[Energy-Consumption-Potential])
177
177
  end
178
178
 
179
- def estimated_energy_cost
180
- xpath(%w[Estimated-Energy-Cost])
181
- end
179
+ def estimated_energy_cost; end
182
180
 
183
181
  def total_floor_area
184
182
  xpath(%w[Property-Summary Total-Floor-Area]).to_i
@@ -164,9 +164,7 @@ module ViewModel
164
164
  xpath(%w[Energy-Consumption-Potential])
165
165
  end
166
166
 
167
- def estimated_energy_cost
168
- xpath(%w[Estimated-Energy-Cost])
169
- end
167
+ def estimated_energy_cost; end
170
168
 
171
169
  def total_floor_area
172
170
  building_part_areas = @xml_doc.search("//SAP-Building-Part/SAP-Floor-Dimensions/SAP-Floor-Dimension/Total-Floor-Area").map(&:content)
@@ -164,9 +164,7 @@ module ViewModel
164
164
  xpath(%w[Energy-Consumption-Potential])
165
165
  end
166
166
 
167
- def estimated_energy_cost
168
- xpath(%w[Estimated-Energy-Cost])
169
- end
167
+ def estimated_energy_cost; end
170
168
 
171
169
  def total_floor_area
172
170
  building_part_areas = @xml_doc.search("//SAP-Building-Part/SAP-Floor-Dimensions/SAP-Floor-Dimension/Total-Floor-Area").map(&:content)
@@ -164,9 +164,7 @@ module ViewModel
164
164
  xpath(%w[Energy-Consumption-Potential])
165
165
  end
166
166
 
167
- def estimated_energy_cost
168
- xpath(%w[Estimated-Energy-Cost])
169
- end
167
+ def estimated_energy_cost; end
170
168
 
171
169
  def total_floor_area
172
170
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -164,9 +164,7 @@ module ViewModel
164
164
  xpath(%w[Energy-Consumption-Potential])
165
165
  end
166
166
 
167
- def estimated_energy_cost
168
- xpath(%w[Estimated-Energy-Cost])
169
- end
167
+ def estimated_energy_cost; end
170
168
 
171
169
  def total_floor_area
172
170
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -164,9 +164,7 @@ module ViewModel
164
164
  xpath(%w[Energy-Consumption-Potential])
165
165
  end
166
166
 
167
- def estimated_energy_cost
168
- xpath(%w[Estimated-Energy-Cost])
169
- end
167
+ def estimated_energy_cost; end
170
168
 
171
169
  def total_floor_area
172
170
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -164,9 +164,7 @@ module ViewModel
164
164
  xpath(%w[Energy-Consumption-Potential])
165
165
  end
166
166
 
167
- def estimated_energy_cost
168
- xpath(%w[Estimated-Energy-Cost])
169
- end
167
+ def estimated_energy_cost; end
170
168
 
171
169
  def total_floor_area
172
170
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -164,9 +164,7 @@ module ViewModel
164
164
  xpath(%w[Energy-Consumption-Potential])
165
165
  end
166
166
 
167
- def estimated_energy_cost
168
- xpath(%w[Estimated-Energy-Cost])
169
- end
167
+ def estimated_energy_cost; end
170
168
 
171
169
  def total_floor_area
172
170
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -159,9 +159,7 @@ module ViewModel
159
159
  xpath(%w[Energy-Consumption-Potential])
160
160
  end
161
161
 
162
- def estimated_energy_cost
163
- xpath(%w[Estimated-Energy-Cost])
164
- end
162
+ def estimated_energy_cost; end
165
163
 
166
164
  def total_floor_area
167
165
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -155,9 +155,7 @@ module ViewModel
155
155
  xpath(%w[Energy-Consumption-Potential])
156
156
  end
157
157
 
158
- def estimated_energy_cost
159
- xpath(%w[Estimated-Energy-Cost])
160
- end
158
+ def estimated_energy_cost; end
161
159
 
162
160
  def total_floor_area
163
161
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -164,9 +164,7 @@ module ViewModel
164
164
  xpath(%w[Energy-Consumption-Potential])
165
165
  end
166
166
 
167
- def estimated_energy_cost
168
- xpath(%w[Estimated-Energy-Cost])
169
- end
167
+ def estimated_energy_cost; end
170
168
 
171
169
  def total_floor_area
172
170
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -164,9 +164,7 @@ module ViewModel
164
164
  xpath(%w[Energy-Consumption-Potential])
165
165
  end
166
166
 
167
- def estimated_energy_cost
168
- xpath(%w[Estimated-Energy-Cost])
169
- end
167
+ def estimated_energy_cost; end
170
168
 
171
169
  def total_floor_area
172
170
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -168,9 +168,7 @@ module ViewModel
168
168
  xpath(%w[Energy-Consumption-Potential])
169
169
  end
170
170
 
171
- def estimated_energy_cost
172
- xpath(%w[Estimated-Energy-Cost])
173
- end
171
+ def estimated_energy_cost; end
174
172
 
175
173
  def total_floor_area
176
174
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -164,9 +164,7 @@ module ViewModel
164
164
  xpath(%w[Energy-Consumption-Potential])
165
165
  end
166
166
 
167
- def estimated_energy_cost
168
- xpath(%w[Estimated-Energy-Cost])
169
- end
167
+ def estimated_energy_cost; end
170
168
 
171
169
  def total_floor_area
172
170
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -164,9 +164,7 @@ module ViewModel
164
164
  xpath(%w[Energy-Consumption-Potential])
165
165
  end
166
166
 
167
- def estimated_energy_cost
168
- xpath(%w[Estimated-Energy-Cost])
169
- end
167
+ def estimated_energy_cost; end
170
168
 
171
169
  def total_floor_area
172
170
  xpath(%w[Property-Summary Total-Floor-Area])
@@ -168,9 +168,7 @@ module ViewModel
168
168
  xpath(%w[Energy-Consumption-Potential])
169
169
  end
170
170
 
171
- def estimated_energy_cost
172
- xpath(%w[Estimated-Energy-Cost])
173
- end
171
+ def estimated_energy_cost; end
174
172
 
175
173
  def total_floor_area
176
174
  xpath(%w[Property-Summary Total-Floor-Area])
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.24
4
+ version: 1.0.26
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: 2022-09-13 00:00:00.000000000 Z
11
+ date: 2022-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.4'
33
+ version: '2.6'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.4'
40
+ version: '2.6'
41
41
  description:
42
42
  email:
43
43
  - mhclg.digital-services@communities.gov.uk