Class: ViewModel::SapSchemaNi142::CommonSchema

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

Direct Known Subclasses

Rdsap, Sap

Instance Method Summary collapse

Methods inherited from DomesticEpcViewModel

#addendum, #improvement_title, #lzc_energy_sources, #multi_glazing_type, #property_type, #status

Methods inherited from BaseViewModel

#initialize, #xpath

Constructor Details

This class inherits a constructor from ViewModel::BaseViewModel

Instance Method Details

#address_idObject



61
62
63
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 61

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

#address_line1Object



8
9
10
# File 'lib/view_model/sap_schema_ni_142/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_ni_142/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_ni_142/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_ni_142/common_schema.rb', line 20

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

#all_floor_descriptionsObject



467
468
469
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 467

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

#all_floor_energy_efficiency_ratingObject



471
472
473
474
475
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 471

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

#all_floor_env_energy_efficiency_ratingObject



477
478
479
480
481
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 477

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

#all_main_heating_controls_descriptionsObject



387
388
389
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 387

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

#all_main_heating_controls_energy_efficiencyObject



483
484
485
486
487
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 483

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



489
490
491
492
493
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 489

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

#all_main_heating_descriptionsObject



379
380
381
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 379

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

#all_main_heating_energy_efficiencyObject



427
428
429
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 427

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

#all_main_heating_environmental_efficiencyObject



457
458
459
460
461
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 457

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

#all_roof_descriptionsObject



395
396
397
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 395

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

#all_roof_energy_efficiency_ratingObject



399
400
401
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 399

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

#all_roof_env_energy_efficiency_ratingObject



403
404
405
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 403

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

#all_wall_descriptionsObject



407
408
409
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 407

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

#all_wall_energy_efficiency_ratingObject



411
412
413
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 411

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

#all_wall_env_energy_efficiency_ratingObject



415
416
417
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 415

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_ni_142/common_schema.rb', line 4

def assessment_id
  xpath(%w[RRN])
end

#assessor_emailObject



45
46
47
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 45

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

#assessor_nameObject



36
37
38
39
40
41
42
43
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 36

def assessor_name
  [
    xpath(%w[Home-Inspector Name Prefix]),
    xpath(%w[Home-Inspector Name First-Name]),
    xpath(%w[Home-Inspector Name Surname]),
    xpath(%w[Home-Inspector Name Suffix]),
  ].reject { |e| e.to_s.empty? }.join(" ")
end

#assessor_telephoneObject



49
50
51
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 49

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

#built_formObject



363
364
365
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 363

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

#co2_emissions_current_per_floor_areaObject



254
255
256
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 254

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

#country_codeObject



219
220
221
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 219

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

#current_carbon_emissionObject



147
148
149
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 147

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

#current_energy_ratingObject



155
156
157
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 155

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

#current_space_heating_demandObject



193
194
195
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 193

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

#current_water_heating_demandObject



197
198
199
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 197

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

#date_of_assessmentObject



53
54
55
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 53

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

#date_of_expiryObject



65
66
67
68
69
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 65

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

  expires_at.to_s
end

#date_of_registrationObject



57
58
59
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 57

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

#dwelling_typeObject



175
176
177
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 175

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

#energy_consumption_potentialObject



163
164
165
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 163

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

#energy_tariffObject



419
420
421
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 419

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

#environmental_impact_currentObject



246
247
248
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 246

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

#environmental_impact_potentialObject



250
251
252
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 250

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

#estimated_energy_costObject



167
168
169
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 167

def estimated_energy_cost
  xpath(%w[Estimated-Energy-Cost])
end

#extensions_countObject



383
384
385
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 383

def extensions_count
  xpath(%w[Extensions-Count])
end

#fixed_lighting_outlets_countObject



299
300
301
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 299

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

#floor_heightObject



463
464
465
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 463

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

#floor_levelObject



423
424
425
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 423

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

#glazed_areaObject



283
284
285
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 283

def glazed_area
  nil
end

#habitable_room_countObject



287
288
289
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 287

def habitable_room_count
  nil
end

#heat_loss_corridorObject



371
372
373
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 371

def heat_loss_corridor
  xpath(%w[Heat-Loss-Corridor])
end

#heated_room_countObject



291
292
293
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 291

def heated_room_count
  nil
end

#heating_cost_currentObject



135
136
137
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 135

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

#heating_cost_potentialObject



123
124
125
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 123

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

#hot_water_cost_currentObject



131
132
133
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 131

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

#hot_water_cost_potentialObject



119
120
121
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 119

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

#hot_water_descriptionObject



311
312
313
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 311

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

#hot_water_energy_efficiency_ratingObject



315
316
317
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 315

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

#hot_water_environmental_efficiency_ratingObject



319
320
321
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 319

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

#impact_of_cavity_insulationObject



201
202
203
204
205
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 201

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



207
208
209
210
211
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 207

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



213
214
215
216
217
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 213

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



96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 96

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



262
263
264
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 262

def level
  xpath(%w[Level])
end

#lighting_cost_currentObject



139
140
141
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 139

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

#lighting_cost_potentialObject



127
128
129
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 127

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

#lighting_descriptionObject



347
348
349
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 347

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

#lighting_energy_efficiency_ratingObject



351
352
353
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 351

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

#lighting_environmental_efficiency_ratingObject



355
356
357
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 355

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

#low_energy_fixed_lighting_outlets_countObject



303
304
305
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 303

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

#low_energy_lightingObject



295
296
297
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 295

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

#main_dwelling_construction_age_band_or_yearObject



439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 439

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



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

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

#main_heating_controlsObject



275
276
277
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 275

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

#mains_gasObject



258
259
260
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 258

def mains_gas
  nil
end

#mechanical_ventilationObject



435
436
437
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 435

def mechanical_ventilation
  nil
end

#multiple_glazed_proportionObject



279
280
281
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 279

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

#open_fireplaces_countObject



307
308
309
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 307

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

#photovoltaic_roof_area_percentObject



359
360
361
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 359

def photovoltaic_roof_area_percent
  nil
end

#postcodeObject



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

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

#potential_carbon_emissionObject



143
144
145
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 143

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

#potential_energy_ratingObject



151
152
153
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 151

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

#potential_energy_savingObject



179
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 179

def potential_energy_saving; end

#primary_energy_useObject



159
160
161
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 159

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

#property_age_bandObject



181
182
183
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 181

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

#property_summaryObject



71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 71

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


92
93
94
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 92

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


88
89
90
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 88

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

#report_typeObject



391
392
393
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 391

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

#scheme_assessor_idObject



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

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

#secondary_fuel_typeObject



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

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

#secondary_heating_descriptionObject



335
336
337
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 335

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

#secondary_heating_energy_efficiency_ratingObject



339
340
341
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 339

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

#secondary_heating_environmental_efficiency_ratingObject



343
344
345
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 343

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

#solar_water_heating_flagObject



431
432
433
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 431

def solar_water_heating_flag
  nil
end

#storey_countObject



271
272
273
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 271

def storey_count
  nil
end

#tenureObject



185
186
187
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 185

def tenure
  xpath(%w[Tenure])
end

#top_storeyObject



266
267
268
269
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 266

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

#total_floor_areaObject



171
172
173
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 171

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

#townObject



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

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

#transaction_typeObject



189
190
191
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 189

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

#type_of_assessmentObject



235
236
237
238
239
240
241
242
243
244
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 235

def type_of_assessment
  case xpath(%w[Report-Type]).to_i
  when 1
    "HCR"
  when 2
    "RdSAP"
  else
    "SAP"
  end
end

#unheated_corridor_lengthObject



375
376
377
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 375

def unheated_corridor_length
  xpath(%w[Unheated-Corridor-Length])
end

#water_heating_fuelObject



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

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

#wind_turbine_countObject



367
368
369
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 367

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

#window_descriptionObject



323
324
325
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 323

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

#window_energy_efficiency_ratingObject



327
328
329
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 327

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

#window_environmental_efficiency_ratingObject



331
332
333
# File 'lib/view_model/sap_schema_ni_142/common_schema.rb', line 331

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