class ViewModel::RdSapSchemaNi200::CommonSchema

Public Instance Methods

address_id() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 62
def address_id
  xpath(%w[UPRN])
end
address_line1() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 10
def address_line1
  xpath(%w[Property Address Address-Line-1])
end
address_line2() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 14
def address_line2
  xpath(%w[Property Address Address-Line-2]).to_s
end
address_line3() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 18
def address_line3
  xpath(%w[Property Address Address-Line-3]).to_s
end
address_line4() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 22
def address_line4
  xpath(%w[Property Address Address-Line-4]).to_s
end
all_building_parts() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 309
def all_building_parts
  @xml_doc
    .search("SAP-Building-Parts/SAP-Building-Part")
    .map do |part|
      {
        roof_insulation_thickness:
          if part.xpath("Roof-Insulation-Thickness").empty?
            nil
          else
            part.xpath("Roof-Insulation-Thickness").text
          end,
        rafter_insulation_thickness:
          xpath(%w[Rafter-Insulation-Thickness], part),
        flat_roof_insulation_thickness:
          xpath(%w[Flat-Roof-Insulation-Thickness], part),
        sloping_ceiling_insulation_thickness:
          xpath(%w[Sloping-Ceiling-Insulation-Thickness], part),
        roof_u_value: xpath(%w[Roof-U-Value], part),
        roof_room_connected: xpath(%w[Roof-Room-Connected], part),
      }
    end
end
all_floor_descriptions() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 516
def all_floor_descriptions
  @xml_doc.search("Property-Summary/Floor/Description").map(&:content)
end
all_floor_energy_efficiency_rating() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 520
def all_floor_energy_efficiency_rating
  @xml_doc
    .search("Property-Summary/Floor/Energy-Efficiency-Rating")
    .map(&:content)
end
all_floor_env_energy_efficiency_rating() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 526
def all_floor_env_energy_efficiency_rating
  @xml_doc
    .search("Property-Summary/Floor/Environmental-Efficiency-Rating")
    .map(&:content)
end
all_hot_water_descriptions() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 275
def all_hot_water_descriptions
  @xml_doc.search("Hot-Water/Description").map(&:content)
end
all_lighting_descriptions() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 279
def all_lighting_descriptions
  @xml_doc.search("Lighting/Description").map(&:content)
end
all_main_heating_controls_descriptions() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 261
def all_main_heating_controls_descriptions
  @xml_doc.search("Main-Heating-Controls/Description").map(&:content)
end
all_main_heating_controls_energy_efficiency() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 532
def all_main_heating_controls_energy_efficiency
  @xml_doc
    .search("Main-Heating-Controls/Energy-Efficiency-Rating")
    .map(&:content)
end
all_main_heating_controls_environmental_efficiency() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 538
def all_main_heating_controls_environmental_efficiency
  @xml_doc
    .search("Main-Heating-Controls/Environmental-Efficiency-Rating")
    .map(&:content)
end
all_main_heating_descriptions() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 257
def all_main_heating_descriptions
  @xml_doc.search("Main-Heating/Description").map(&:content)
end
all_main_heating_energy_efficiency() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 265
def all_main_heating_energy_efficiency
  @xml_doc.search("Main-Heating/Energy-Efficiency-Rating").map(&:content)
end
all_main_heating_environmental_efficiency() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 269
def all_main_heating_environmental_efficiency
  @xml_doc
    .search("Main-Heating/Environmental-Efficiency-Rating")
    .map(&:content)
end
all_roof_descriptions() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 241
def all_roof_descriptions
  @xml_doc.search("Roof/Description").map(&:content)
end
all_roof_energy_efficiency_rating() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 245
def all_roof_energy_efficiency_rating
  @xml_doc.search("Roof/Energy-Efficiency-Rating").map(&:content)
end
all_roof_env_energy_efficiency_rating() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 249
def all_roof_env_energy_efficiency_rating
  @xml_doc.search("Roof/Environmental-Efficiency-Rating").map(&:content)
end
all_sap_floor_dimensions() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 287
def all_sap_floor_dimensions
  @xml_doc.search("SAP-Floor-Dimension").select(&:element?).map { |node|
    { total_floor_area: xpath(%w[Total-Floor-Area], node).to_f }
  }.compact
end
all_secondary_heating_descriptions() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 283
def all_secondary_heating_descriptions
  @xml_doc.search("Secondary-Heating/Description").map(&:content)
end
all_wall_descriptions() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 488
def all_wall_descriptions
  @xml_doc.search("Wall/Description").map(&:content)
end
all_wall_energy_efficiency_rating() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 492
def all_wall_energy_efficiency_rating
  @xml_doc.search("Wall/Energy-Efficiency-Rating").map(&:content)
end
all_wall_env_energy_efficiency_rating() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 496
def all_wall_env_energy_efficiency_rating
  @xml_doc.search("Wall/Environmental-Efficiency-Rating").map(&:content)
end
all_window_descriptions() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 253
def all_window_descriptions
  @xml_doc.search("Window/Description").map(&:content)
end
assessment_id() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 6
def assessment_id
  xpath(%w[RRN])
end
assessor_email() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 42
def assessor_email
  xpath(%w[Energy-Assessor E-Mail])
end
assessor_name() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 38
def assessor_name
  xpath(%w[Energy-Assessor Name])
end
assessor_telephone() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 46
def assessor_telephone
  xpath(%w[Energy-Assessor Telephone])
end
boiler_flue_type() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 356
def boiler_flue_type
  xpath(%w[Boiler-Flue-Type])
end
building_part_number() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 305
def building_part_number
  xpath(%w[Building-Part-Number])
end
built_form() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 476
def built_form
  xpath(%w[Built-Form])
end
co2_emissions_current_per_floor_area() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 372
def co2_emissions_current_per_floor_area
  xpath(%w[CO2-Emissions-Current-Per-Floor-Area])
end
country_code() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 368
def country_code
  xpath(%w[Country-Code])
end
current_carbon_emission() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 149
def current_carbon_emission
  xpath(%w[CO2-Emissions-Current])
end
current_energy_rating() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 157
def current_energy_rating
  xpath(%w[Energy-Rating-Current]).to_i
end
current_space_heating_demand() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 187
def current_space_heating_demand
  xpath(%w[Space-Heating-Existing-Dwelling])
end
current_water_heating_demand() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 191
def current_water_heating_demand
  xpath(%w[Water-Heating])
end
cylinder_insul_thickness() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 570
def cylinder_insul_thickness
  xpath(%w[Cylinder-Insulation-Thickness])
end
cylinder_insulation_type() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 566
def cylinder_insulation_type
  xpath(%w[Cylinder-Insulation-Type])
end
cylinder_size() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 574
def cylinder_size
  xpath(%w[Cylinder-Size])
end
date_of_assessment() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 50
def date_of_assessment
  xpath(%w[Inspection-Date])
end
date_of_completion() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 58
def date_of_completion
  xpath(%w[Completion-Date])
end
date_of_expiry() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 66
def date_of_expiry
  expires_at = (Date.parse(date_of_registration) - 1) >> 12 * 10

  expires_at.to_s
end
date_of_registration() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 54
def date_of_registration
  xpath(%w[Registration-Date])
end
dwelling_type() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 169
def dwelling_type
  xpath(%w[Dwelling-Type])
end
energy_consumption_potential() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 237
def energy_consumption_potential
  xpath(%w[Energy-Consumption-Potential])
end
energy_rating_current() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 217
def energy_rating_current
  xpath(%w[Energy-Rating-Current])
end
energy_rating_potential() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 221
def energy_rating_potential
  xpath(%w[Energy-Rating-Potential])
end
environmental_impact_current() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 225
def environmental_impact_current
  xpath(%w[Environmental-Impact-Current])
end
environmental_impact_potential() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 229
def environmental_impact_potential
  xpath(%w[Environmental-Impact-Potential])
end
estimated_energy_cost() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 161
def estimated_energy_cost
  xpath(%w[Estimated-Energy-Cost])
end
extensions_count() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 480
def extensions_count
  xpath(%w[Extensions-Count])
end
fixed_lighting_outlets_count() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 400
def fixed_lighting_outlets_count
  xpath(%w[Fixed-Lighting-Outlets-Count])
end
floor_heat_loss() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 332
def floor_heat_loss
  xpath(%w[Floor-Heat-Loss])
end
floor_height() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 512
def floor_height
  @xml_doc.search("Room-Height").map(&:content)
end
floor_level() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 500
def floor_level
  xpath(%w[Flat-Location])
end
glazed_area() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 388
def glazed_area
  xpath(%w[Glazed-Area])
end
glazing_type() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 544
def glazing_type
  @xml_doc.search("Glazing-Type").map(&:content)
end
habitable_room_count() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 213
def habitable_room_count
  xpath(%w[Habitable-Room-Count])
end
has_cylinder_thermostat() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 578
def has_cylinder_thermostat
  xpath(%w[Cylinder-Thermostat])
end
heat_loss_corridor() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 428
def heat_loss_corridor
  xpath(%w[Heat-Loss-Corridor])
end
heated_room_count() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 392
def heated_room_count
  xpath(%w[Heated-Room-Count])
end
heating_cost_current() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 137
def heating_cost_current
  xpath(%w[Heating-Cost-Current])
end
heating_cost_potential() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 125
def heating_cost_potential
  xpath(%w[Heating-Cost-Potential])
end
hot_water_cost_current() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 133
def hot_water_cost_current
  xpath(%w[Hot-Water-Cost-Current])
end
hot_water_cost_potential() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 121
def hot_water_cost_potential
  xpath(%w[Hot-Water-Cost-Potential])
end
hot_water_description() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 412
def hot_water_description
  xpath(%w[Hot-Water Description])
end
hot_water_energy_efficiency_rating() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 416
def hot_water_energy_efficiency_rating
  xpath(%w[Hot-Water Energy-Efficiency-Rating])
end
hot_water_environmental_efficiency_rating() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 420
def hot_water_environmental_efficiency_rating
  xpath(%w[Hot-Water Environmental-Efficiency-Rating])
end
immersion_heating_type() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 336
def immersion_heating_type
  xpath(%w[Immersion-Heating-Type])
end
impact_of_cavity_insulation() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 195
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_insulation() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 201
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_insulation() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 207
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
improvements() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 98
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
level() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 293
def level
  xpath(%w[Level])
end
lighting_cost_current() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 141
def lighting_cost_current
  xpath(%w[Lighting-Cost-Current])
end
lighting_cost_potential() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 129
def lighting_cost_potential
  xpath(%w[Lighting-Cost-Potential])
end
lighting_description() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 460
def lighting_description
  xpath(%w[Lighting Description])
end
lighting_energy_efficiency_rating() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 464
def lighting_energy_efficiency_rating
  xpath(%w[Lighting Energy-Efficiency-Rating])
end
lighting_environmental_efficiency_rating() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 468
def lighting_environmental_efficiency_rating
  xpath(%w[Lighting Environmental-Efficiency-Rating])
end
low_energy_fixed_lighting_outlets_count() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 404
def low_energy_fixed_lighting_outlets_count
  xpath(%w[Low-Energy-Fixed-Lighting-Outlets-Count])
end
low_energy_lighting() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 396
def low_energy_lighting
  xpath(%w[Low-Energy-Lighting])
end
main_dwelling_construction_age_band_or_year() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 548
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_type() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 344
def main_fuel_type
  xpath(%w[Main-Fuel-Type])
end
main_heating_category() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 340
def main_heating_category
  xpath(%w[Main-Heating-Category])
end
main_heating_controls() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 380
def main_heating_controls
  xpath(%w[Main-Heating-Controls Description])
end
mains_gas() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 376
def mains_gas
  xpath(%w[Mains-Gas])
end
mechanical_ventilation() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 508
def mechanical_ventilation
  xpath(%w[Mechanical-Ventilation])
end
meter_type() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 360
def meter_type
  xpath(%w[Meter-Type])
end
multiple_glazed_proportion() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 384
def multiple_glazed_proportion
  xpath(%w[Multiple-Glazed-Proportion])
end
open_fireplaces_count() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 408
def open_fireplaces_count
  xpath(%w[Open-Fireplaces-Count])
end
photovoltaic_roof_area_percent() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 472
def photovoltaic_roof_area_percent
  xpath(%w[Photovoltaic-Supply Percent-Roof-Area])
end
postcode() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 30
def postcode
  xpath(%w[Property Address Postcode])
end
potential_carbon_emission() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 145
def potential_carbon_emission
  xpath(%w[CO2-Emissions-Potential])
end
potential_energy_rating() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 153
def potential_energy_rating
  xpath(%w[Energy-Rating-Potential]).to_i
end
potential_energy_saving() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 173
def potential_energy_saving; end
primary_energy_use() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 233
def primary_energy_use
  xpath(%w[Energy-Consumption-Current])
end
property_age_band() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 175
def property_age_band
  xpath(%w[Construction-Age-Band])
end
property_summary() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 72
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
report_type() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 484
def report_type
  xpath(%w[Report-Type])
end
sap_main_heating_code() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 364
def sap_main_heating_code
  xpath(%w[SAP-Main-Heating-Code])
end
scheme_assessor_id() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 34
def scheme_assessor_id
  xpath(%w[Certificate-Number])
end
secondary_fuel_type() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 348
def secondary_fuel_type
  xpath(%w[Secondary-Fuel-Type])
end
secondary_heating_description() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 448
def secondary_heating_description
  xpath(%w[Secondary-Heating Description])
end
secondary_heating_energy_efficiency_rating() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 452
def secondary_heating_energy_efficiency_rating
  xpath(%w[Secondary-Heating Energy-Efficiency-Rating])
end
secondary_heating_environmental_efficiency_rating() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 456
def secondary_heating_environmental_efficiency_rating
  xpath(%w[Secondary-Heating Environmental-Efficiency-Rating])
end
solar_water_heating_flag() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 504
def solar_water_heating_flag
  xpath(%w[Solar-Water-Heating])
end
storey_count() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 301
def storey_count
  xpath(%w[Storey-Count])
end
tenure() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 179
def tenure
  xpath(%w[Tenure])
end
top_storey() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 297
def top_storey
  xpath(%w[Top-Storey])
end
total_floor_area() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 165
def total_floor_area
  xpath(%w[Property-Summary Total-Floor-Area])
end
town() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 26
def town
  xpath(%w[Property Address Post-Town])
end
transaction_type() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 183
def transaction_type
  xpath(%w[Transaction-Type])
end
unheated_corridor_length() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 432
def unheated_corridor_length
  xpath(%w[Unheated-Corridor-Length])
end
water_heating_fuel() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 352
def water_heating_fuel
  xpath(%w[Water-Heating-Fuel])
end
wind_turbine_count() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 424
def wind_turbine_count
  xpath(%w[Wind-Turbines-Count])
end
window_description() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 436
def window_description
  xpath(%w[Window Description])
end
window_energy_efficiency_rating() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 440
def window_energy_efficiency_rating
  xpath(%w[Window Energy-Efficiency-Rating])
end
window_environmental_efficiency_rating() click to toggle source
# File lib/view_model/rd_sap_schema_ni_200/common_schema.rb, line 444
def window_environmental_efficiency_rating
  xpath(%w[Window Environmental-Efficiency-Rating])
end