Class: ViewModel::SapSchema170::CommonSchema

Inherits:
DomesticEpcViewModel show all
Defined in:
lib/view_model/sap_schema_170/common_schema.rb

Instance Method Summary collapse

Methods inherited from DomesticEpcViewModel

#addendum, #has_hot_water_cylinder, #improvement_title, #lzc_energy_sources, #main_heating_category, #multi_glazing_type, #property_type, #status, #water_heating_code

Methods inherited from BaseViewModel

#initialize, #xpath

Constructor Details

This class inherits a constructor from ViewModel::BaseViewModel

Instance Method Details

#address_idObject



56
57
58
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 56

def address_id
  "LPRN-#{xpath(%w[UPRN])}"
end

#address_line1Object



8
9
10
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 8

def address_line1
  xpath(%w[Property Address Address-Line-1])
end

#address_line2Object



12
13
14
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 12

def address_line2
  xpath(%w[Property Address Address-Line-2]).to_s
end

#address_line3Object



16
17
18
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 16

def address_line3
  xpath(%w[Property Address Address-Line-3]).to_s
end

#address_line4Object



20
21
22
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 20

def address_line4
  xpath(%w[Property Address Address-Line-4]).to_s
end

#all_floor_descriptionsObject



426
427
428
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 426

def all_floor_descriptions
  @xml_doc.search("Property-Summary/Floor/Description").map(&:content)
end

#all_floor_energy_efficiency_ratingObject



430
431
432
433
434
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 430

def all_floor_energy_efficiency_rating
  @xml_doc
    .search("Property-Summary/Floor/Energy-Efficiency-Rating")
    .map(&:content)
end

#all_floor_env_energy_efficiency_ratingObject



436
437
438
439
440
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 436

def all_floor_env_energy_efficiency_rating
  @xml_doc
    .search("Property-Summary/Floor/Environmental-Efficiency-Rating")
    .map(&:content)
end

#all_main_heating_controls_descriptionsObject



382
383
384
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 382

def all_main_heating_controls_descriptions
  @xml_doc.search("Main-Heating-Controls/Description").map(&:content)
end

#all_main_heating_controls_energy_efficiencyObject



446
447
448
449
450
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 446

def all_main_heating_controls_energy_efficiency
  @xml_doc
    .search("Main-Heating-Controls/Energy-Efficiency-Rating")
    .map(&:content)
end

#all_main_heating_controls_environmental_efficiencyObject



452
453
454
455
456
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 452

def all_main_heating_controls_environmental_efficiency
  @xml_doc
    .search("Main-Heating-Controls/Environmental-Efficiency-Rating")
    .map(&:content)
end

#all_main_heating_descriptionsObject



378
379
380
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 378

def all_main_heating_descriptions
  @xml_doc.search("Main-Heating/Description").map(&:content)
end

#all_main_heating_energy_efficiencyObject



442
443
444
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 442

def all_main_heating_energy_efficiency
  @xml_doc.search("Main-Heating/Energy-Efficiency-Rating").map(&:content)
end

#all_main_heating_environmental_efficiencyObject



458
459
460
461
462
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 458

def all_main_heating_environmental_efficiency
  @xml_doc
    .search("Main-Heating/Environmental-Efficiency-Rating")
    .map(&:content)
end

#all_roof_descriptionsObject



390
391
392
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 390

def all_roof_descriptions
  @xml_doc.search("Roof/Description").map(&:content)
end

#all_roof_energy_efficiency_ratingObject



394
395
396
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 394

def all_roof_energy_efficiency_rating
  @xml_doc.search("Roof/Energy-Efficiency-Rating").map(&:content)
end

#all_roof_env_energy_efficiency_ratingObject



398
399
400
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 398

def all_roof_env_energy_efficiency_rating
  @xml_doc.search("Roof/Environmental-Efficiency-Rating").map(&:content)
end

#all_wall_descriptionsObject



402
403
404
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 402

def all_wall_descriptions
  @xml_doc.search("Walls/Description").map(&:content)
end

#all_wall_energy_efficiency_ratingObject



406
407
408
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 406

def all_wall_energy_efficiency_rating
  @xml_doc.search("Walls/Energy-Efficiency-Rating").map(&:content)
end

#all_wall_env_energy_efficiency_ratingObject



410
411
412
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 410

def all_wall_env_energy_efficiency_rating
  @xml_doc.search("Walls/Environmental-Efficiency-Rating").map(&:content)
end

#assessment_idObject



4
5
6
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 4

def assessment_id
  xpath(%w[RRN])
end

#assessor_emailObject



40
41
42
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 40

def assessor_email
  xpath(%w[Home-Inspector/E-Mail])
end

#assessor_nameObject



36
37
38
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 36

def assessor_name
  xpath(%w[Home-Inspector Name])
end

#assessor_telephoneObject



44
45
46
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 44

def assessor_telephone
  xpath(%w[Home-Inspector/Telephone])
end

#built_formObject



370
371
372
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 370

def built_form
  xpath(%w[Built-Form])
end

#co2_emissions_current_per_floor_areaObject



285
286
287
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 285

def co2_emissions_current_per_floor_area
  xpath(%w[CO2-Emissions-Current-Per-Floor-Area])
end

#country_codeObject



261
262
263
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 261

def country_code
  xpath(%w[Country-Code])
end

#current_carbon_emissionObject



157
158
159
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 157

def current_carbon_emission
  xpath(%w[CO2-Emissions-Current])
end

#current_energy_ratingObject



165
166
167
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 165

def current_energy_rating
  xpath(%w[Energy-Rating-Current])&.to_i
end

#current_space_heating_demandObject



231
232
233
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 231

def current_space_heating_demand
  xpath(%w[Space-Heating]) or xpath(%w[Space-Heating-Existing-Dwelling])
end

#current_water_heating_demandObject



235
236
237
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 235

def current_water_heating_demand
  xpath(%w[Water-Heating])
end

#cylinder_insul_thicknessObject



464
465
466
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 464

def cylinder_insul_thickness
  xpath(%w[Hot-Water-Store-Insulation-Thickness])
end

#cylinder_insulation_typeObject



468
469
470
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 468

def cylinder_insulation_type
  xpath(%w[Hot-Water-Store-Insulation-Type])
end

#cylinder_sizeObject



472
473
474
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 472

def cylinder_size
  xpath(%w[Hot-Water-Store-Size])
end

#date_of_assessmentObject



48
49
50
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 48

def date_of_assessment
  xpath(%w[Inspection-Date])
end

#date_of_expiryObject



60
61
62
63
64
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 60

def date_of_expiry
  expires_at = (Date.parse(date_of_registration) - 1) >> 12 * 10

  expires_at.to_s
end

#date_of_registrationObject



52
53
54
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 52

def date_of_registration
  xpath(%w[Registration-Date])
end

#dwelling_typeObject



195
196
197
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 195

def dwelling_type
  xpath(%w[Dwelling-Type])
end

#energy_consumption_potentialObject



173
174
175
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 173

def energy_consumption_potential
  xpath(%w[Energy-Consumption-Potential])
end

#energy_tariffObject



414
415
416
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 414

def energy_tariff
  xpath(%w[Electricity-Tariff])
end

#environmental_impact_currentObject



277
278
279
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 277

def environmental_impact_current
  xpath(%w[Environmental-Impact-Current])&.to_i
end

#environmental_impact_potentialObject



281
282
283
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 281

def environmental_impact_potential
  xpath(%w[Environmental-Impact-Potential])&.to_i
end

#estimated_energy_costObject



177
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 177

def estimated_energy_cost; end

#fixed_lighting_outlets_countObject



310
311
312
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 310

def fixed_lighting_outlets_count
  xpath(%w[Fixed-Lighting-Outlets-Count])&.to_i
end

#floor_heightObject



422
423
424
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 422

def floor_height
  @xml_doc.search("Storey-Height").map(&:content)
end

#floor_levelObject



418
419
420
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 418

def floor_level
  xpath(%w[SAP-Flat-Details Level])
end

#has_cylinder_thermostatObject



476
477
478
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 476

def has_cylinder_thermostat
  xpath(%w[Has-Cylinder-Thermostat])
end

#heating_cost_currentObject



145
146
147
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 145

def heating_cost_current
  xpath(%w[Heating-Cost-Current])
end

#heating_cost_potentialObject



133
134
135
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 133

def heating_cost_potential
  xpath(%w[Heating-Cost-Potential])
end

#hot_water_cost_currentObject



141
142
143
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 141

def hot_water_cost_current
  xpath(%w[Hot-Water-Cost-Current])
end

#hot_water_cost_potentialObject



129
130
131
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 129

def hot_water_cost_potential
  xpath(%w[Hot-Water-Cost-Potential])
end

#hot_water_descriptionObject



322
323
324
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 322

def hot_water_description
  xpath(%w[Hot-Water Description])
end

#hot_water_energy_efficiency_ratingObject



326
327
328
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 326

def hot_water_energy_efficiency_rating
  xpath(%w[Hot-Water Energy-Efficiency-Rating])
end

#hot_water_environmental_efficiency_ratingObject



330
331
332
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 330

def hot_water_environmental_efficiency_rating
  xpath(%w[Hot-Water Environmental-Efficiency-Rating])
end

#impact_of_cavity_insulationObject



239
240
241
242
243
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 239

def impact_of_cavity_insulation
  if xpath(%w[Impact-Of-Cavity-Insulation])
    xpath(%w[Impact-Of-Cavity-Insulation])&.to_i
  end
end

#impact_of_loft_insulationObject



245
246
247
248
249
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 245

def impact_of_loft_insulation
  if xpath(%w[Impact-Of-Loft-Insulation])
    xpath(%w[Impact-Of-Loft-Insulation])&.to_i
  end
end

#impact_of_solid_wall_insulationObject



251
252
253
254
255
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 251

def impact_of_solid_wall_insulation
  if xpath(%w[Impact-Of-Solid-Wall-Insulation])
    xpath(%w[Impact-Of-Solid-Wall-Insulation])&.to_i
  end
end

#improvementsObject



91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 91

def improvements
  @xml_doc
    .search("Suggested-Improvements Improvement")
    .map do |node|
      {
        energy_performance_rating_improvement:
          xpath(%w[Energy-Performance-Rating], node).to_i,
        environmental_impact_rating_improvement:
          xpath(%w[Environmental-Impact-Rating], node).to_i,
        green_deal_category_code: xpath(%w[Green-Deal-Category], node),
        improvement_category: xpath(%w[Improvement-Category], node),
        improvement_code:
          xpath(%w[Improvement-Details Improvement-Number], node),
        improvement_description: xpath(%w[Improvement-Description], node),
        improvement_title: improvement_title(node),
        improvement_type: xpath(%w[Improvement-Type], node),
        indicative_cost: xpath(%w[Indicative-Cost], node),
        sequence: xpath(%w[Sequence], node).to_i,
        typical_saving: xpath(%w[Typical-Saving], node),
      }
    end
end

#levelObject



289
290
291
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 289

def level
  xpath(%w[Level])
end

#lighting_cost_currentObject



149
150
151
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 149

def lighting_cost_current
  xpath(%w[Lighting-Cost-Current])
end

#lighting_cost_potentialObject



137
138
139
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 137

def lighting_cost_potential
  xpath(%w[Lighting-Cost-Potential])
end

#lighting_descriptionObject



358
359
360
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 358

def lighting_description
  xpath(%w[Lighting Description])
end

#lighting_energy_efficiency_ratingObject



362
363
364
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 362

def lighting_energy_efficiency_rating
  xpath(%w[Lighting Energy-Efficiency-Rating])
end

#lighting_environmental_efficiency_ratingObject



366
367
368
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 366

def lighting_environmental_efficiency_rating
  xpath(%w[Lighting Environmental-Efficiency-Rating])
end

#low_energy_fixed_lighting_outlets_countObject



314
315
316
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 314

def low_energy_fixed_lighting_outlets_count
  xpath(%w[Low-Energy-Fixed-Lighting-Outlets-Count])&.to_i
end

#low_energy_lightingObject



306
307
308
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 306

def low_energy_lighting
  xpath(%w[Low-Energy-Fixed-Lighting-Outlets-Percentage])
end

#main_dwelling_construction_age_band_or_yearObject



205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 205

def main_dwelling_construction_age_band_or_year
  sap_building_parts =
    @xml_doc.xpath("//SAP-Building-Parts/SAP-Building-Part")
  sap_building_parts.each do |sap_building_part|
    building_part_number = sap_building_part.at("Building-Part-Number")

    # Identifies the Main Dwelling
    if building_part_number&.content == "1"
      return(
        sap_building_part.at_xpath(
          "Construction-Age-Band | Construction-Year",
        )&.content
      )
    end
  end
  nil
end

#main_fuel_typeObject



265
266
267
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 265

def main_fuel_type
  xpath(%w[Main-Fuel-Type])
end

#main_heating_controlsObject



298
299
300
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 298

def main_heating_controls
  xpath(%w[Main-Heating-Controls Description])
end

#mech_vent_sys_index_numberObject



480
481
482
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 480

def mech_vent_sys_index_number
  xpath(%w[Mechanical-Vent-System-Index-Number])&.to_i
end

#mechanical_vent_data_sourceObject



484
485
486
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 484

def mechanical_vent_data_source
  xpath(%w[Mechanical-Ventilation-Data-Source])
end

#multiple_glazed_proportionObject



302
303
304
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 302

def multiple_glazed_proportion
  xpath(%w[Multiple-Glazed-Percentage])
end

#open_fireplaces_countObject



318
319
320
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 318

def open_fireplaces_count
  xpath(%w[Open-Fireplaces-Count])&.to_i
end

#postcodeObject



28
29
30
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 28

def postcode
  xpath(%w[Property Address Postcode])
end

#potential_carbon_emissionObject



153
154
155
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 153

def potential_carbon_emission
  xpath(%w[CO2-Emissions-Potential])
end

#potential_energy_ratingObject



161
162
163
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 161

def potential_energy_rating
  xpath(%w[Energy-Rating-Potential])&.to_i
end

#potential_energy_savingObject



199
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 199

def potential_energy_saving; end

#primary_energy_useObject



169
170
171
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 169

def primary_energy_use
  xpath(%w[Energy-Consumption-Current])
end

#property_age_bandObject



201
202
203
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 201

def property_age_band
  xpath(%w[Construction-Year])
end

#property_summaryObject



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 66

def property_summary
  @xml_doc.search("Energy-Assessment Property-Summary").children.select(
    &:element?
  ).map { |node|
    next if xpath(%w[Energy-Efficiency-Rating], node).nil?

    {
      energy_efficiency_rating:
        xpath(%w[Energy-Efficiency-Rating], node).to_i,
      environmental_efficiency_rating:
        xpath(%w[Environmental-Efficiency-Rating], node).to_i,
      name: node.name.underscore,
      description: xpath(%w[Description], node),
    }
  }.compact
end

#recommendations_for_reportObject



114
115
116
117
118
119
120
121
122
123
124
125
126
127
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 114

def recommendations_for_report
  @xml_doc
    .search("Suggested-Improvements Improvement")
    .map do |node|
      {
        sequence: xpath(%w[Sequence], node).to_i,
        improvement_summary: xpath(%w[Improvement-Summary], node),
        improvement_description: xpath(%w[Improvement-Description], node),
        improvement_code:
          xpath(%w[Improvement-Details Improvement-Number], node),
        indicative_cost: xpath(%w[Indicative-Cost], node),
      }
    end
end


87
88
89
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 87

def related_party_disclosure_number
  xpath(%w[Related-Party-Disclosure-Number])&.to_i
end


83
84
85
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 83

def related_party_disclosure_text
  xpath(%w[Related-Party-Disclosure-Text])
end

#report_typeObject



386
387
388
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 386

def report_type
  xpath(%w[Report-Type])
end

#scheme_assessor_idObject



32
33
34
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 32

def scheme_assessor_id
  xpath(%w[Certificate-Number])
end

#secondary_fuel_typeObject



269
270
271
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 269

def secondary_fuel_type
  xpath(%w[Secondary-Fuel-Type])
end

#secondary_heating_descriptionObject



346
347
348
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 346

def secondary_heating_description
  xpath(%w[Secondary-Heating Description])
end

#secondary_heating_energy_efficiency_ratingObject



350
351
352
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 350

def secondary_heating_energy_efficiency_rating
  xpath(%w[Secondary-Heating Energy-Efficiency-Rating])
end

#secondary_heating_environmental_efficiency_ratingObject



354
355
356
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 354

def secondary_heating_environmental_efficiency_rating
  xpath(%w[Secondary-Heating Environmental-Efficiency-Rating])
end

#tenureObject



223
224
225
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 223

def tenure
  xpath(%w[Tenure])
end

#thermal_storeObject



488
489
490
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 488

def thermal_store
  xpath(%w[Thermal-Store])
end

#top_storeyObject



293
294
295
296
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 293

def top_storey
  flat_level_code = xpath(%w[Level])
  flat_level_code == "3" ? "Y" : "N"
end

#total_floor_areaObject



179
180
181
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 179

def total_floor_area
  xpath(%w[Property-Summary Total-Floor-Area])
end

#total_roof_areaObject



183
184
185
186
187
188
189
190
191
192
193
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 183

def total_roof_area
  roofs = @xml_doc.xpath("//SAP-Roofs/SAP-Roof")
  return nil if roofs.count.zero?

  total_roof_area = 0
  roofs.each do |roof|
    roof_area = roof.at("Total-Roof-Area")&.content.to_i
    total_roof_area += roof_area
  end
  total_roof_area
end

#townObject



24
25
26
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 24

def town
  xpath(%w[Property Address Post-Town])
end

#transaction_typeObject



227
228
229
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 227

def transaction_type
  xpath(%w[Transaction-Type])
end

#type_of_assessmentObject



257
258
259
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 257

def type_of_assessment
  "SAP"
end

#ventilation_typeObject



492
493
494
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 492

def ventilation_type
  xpath(%w[Ventilation-Type])
end

#water_heating_fuelObject



273
274
275
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 273

def water_heating_fuel
  xpath(%w[Water-Fuel-Type])
end

#wind_turbine_countObject



374
375
376
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 374

def wind_turbine_count
  xpath(%w[Wind-Turbines-Count])&.to_i
end

#window_descriptionObject



334
335
336
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 334

def window_description
  xpath(%w[Windows Description])
end

#window_energy_efficiency_ratingObject



338
339
340
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 338

def window_energy_efficiency_rating
  xpath(%w[Windows Energy-Efficiency-Rating])
end

#window_environmental_efficiency_ratingObject



342
343
344
# File 'lib/view_model/sap_schema_170/common_schema.rb', line 342

def window_environmental_efficiency_rating
  xpath(%w[Windows Environmental-Efficiency-Rating])
end