Class: ViewModel::Cepc800::Cepc

Inherits:
CommonSchema show all
Defined in:
lib/view_model/cepc800/cepc.rb

Instance Method Summary collapse

Methods inherited from CommonSchema

#address_id, #address_line1, #address_line2, #address_line3, #address_line4, #all_energy_types, #all_reason_types, #all_start_dates, #assessment_id, #assessor_email, #assessor_name, #assessor_telephone, #calculation_tool, #company_address, #company_name, #date_of_assessment, #date_of_expiry, #date_of_issue, #date_of_registration, #inspection_type, #or_assessment_end_date, #postcode, #report_type, #scheme_assessor_id, #town

Methods inherited from BaseViewModel

#initialize, #xpath

Constructor Details

This class inherits a constructor from ViewModel::BaseViewModel

Instance Method Details

#ac_inspection_commissionedObject



4
5
6
# File 'lib/view_model/cepc800/cepc.rb', line 4

def ac_inspection_commissioned
  xpath(%w[AC-Inspection-Commissioned])
end

#ac_kw_ratingObject



8
9
10
# File 'lib/view_model/cepc800/cepc.rb', line 8

def ac_kw_rating
  xpath(%w[AC-kW-Rating])
end

#ac_presentObject



12
13
14
# File 'lib/view_model/cepc800/cepc.rb', line 12

def ac_present
  xpath(%w[AC-Present])
end

#building_emission_rateObject

This would seem to be a copy? Is the method name used?



21
22
23
# File 'lib/view_model/cepc800/cepc.rb', line 21

def building_emission_rate
  xpath(%w[BER])
end

#building_emissionsObject



16
17
18
# File 'lib/view_model/cepc800/cepc.rb', line 16

def building_emissions
  xpath(%w[BER])
end

#building_environmentObject



25
26
27
# File 'lib/view_model/cepc800/cepc.rb', line 25

def building_environment
  xpath(%w[Building-Environment])
end

#building_levelObject



29
30
31
# File 'lib/view_model/cepc800/cepc.rb', line 29

def building_level
  xpath(%w[Building-Level])
end

#effective_dateObject

Is this used?



34
35
36
# File 'lib/view_model/cepc800/cepc.rb', line 34

def effective_date
  xpath(%w[Effective-Date])
end

#energy_efficiency_ratingObject



38
39
40
# File 'lib/view_model/cepc800/cepc.rb', line 38

def energy_efficiency_rating
  xpath(%w[Asset-Rating])
end


42
43
44
# File 'lib/view_model/cepc800/cepc.rb', line 42

def epc_related_party_disclosure
  xpath(%w[EPC-Related-Party-Disclosure])
end

#estimated_ac_kw_ratingObject



46
47
48
# File 'lib/view_model/cepc800/cepc.rb', line 46

def estimated_ac_kw_rating
  xpath(%w[AC-Estimated-Output])
end

#existing_build_ratingObject



50
51
52
# File 'lib/view_model/cepc800/cepc.rb', line 50

def existing_build_rating
  xpath(%w[Existing-Stock-Benchmark])
end

#floor_areaObject



54
55
56
# File 'lib/view_model/cepc800/cepc.rb', line 54

def floor_area
  xpath(%w[Technical-Information Floor-Area])
end

#main_heating_fuelObject



58
59
60
# File 'lib/view_model/cepc800/cepc.rb', line 58

def main_heating_fuel
  xpath(%w[Main-Heating-Fuel])
end

#new_build_ratingObject

This is new_build_benchmark in the CEPC wrapper



63
64
65
# File 'lib/view_model/cepc800/cepc.rb', line 63

def new_build_rating
  xpath(%w[New-Build-Benchmark])
end

#or_assessment_start_dateObject



67
68
69
# File 'lib/view_model/cepc800/cepc.rb', line 67

def or_assessment_start_date
  xpath(%w[OR-Operational-Rating OR-Assessment-Start-Date])
end

#or_availability_dateObject



71
72
73
# File 'lib/view_model/cepc800/cepc.rb', line 71

def or_availability_date
  xpath(%w[Technical-Information OR-Availability-Date])
end

#other_fuel_descriptionObject



75
76
77
# File 'lib/view_model/cepc800/cepc.rb', line 75

def other_fuel_description
  xpath(%w[Other-Fuel-Description])
end

#primary_energy_useObject



79
80
81
# File 'lib/view_model/cepc800/cepc.rb', line 79

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

#property_typeObject



83
84
85
# File 'lib/view_model/cepc800/cepc.rb', line 83

def property_type
  xpath(%w[Property-Type])
end

Is this used in the CEPC wrapper? def renewable_energy_source

xpath(%w[Renewable-Energy-Source])

end



92
93
94
# File 'lib/view_model/cepc800/cepc.rb', line 92

def related_rrn
  xpath(%w[Related-RRN])
end

#renewable_sourcesObject



116
117
118
# File 'lib/view_model/cepc800/cepc.rb', line 116

def renewable_sources
  xpath(%w[Renewable-Sources])
end

#special_energy_usesObject



96
97
98
# File 'lib/view_model/cepc800/cepc.rb', line 96

def special_energy_uses
  xpath(%w[Special-Energy-Uses])
end

#standard_emissionsObject



100
101
102
# File 'lib/view_model/cepc800/cepc.rb', line 100

def standard_emissions
  xpath(%w[SER])
end

#target_emissionsObject



104
105
106
# File 'lib/view_model/cepc800/cepc.rb', line 104

def target_emissions
  xpath(%w[TER])
end

#transaction_typeObject



108
109
110
# File 'lib/view_model/cepc800/cepc.rb', line 108

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

#typical_emissionsObject



112
113
114
# File 'lib/view_model/cepc800/cepc.rb', line 112

def typical_emissions
  xpath(%w[TYR])
end