Class: ViewModel::CepcNi800::Cepc
Instance Method Summary
collapse
#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
#initialize, #xpath
Instance Method Details
#ac_inspection_commissioned ⇒ Object
4
5
6
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 4
def ac_inspection_commissioned
xpath(%w[AC-Inspection-Commissioned])
end
|
#ac_kw_rating ⇒ Object
8
9
10
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 8
def ac_kw_rating
xpath(%w[AC-kW-Rating])&.to_i
end
|
#ac_present ⇒ Object
12
13
14
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 12
def ac_present
xpath(%w[AC-Present])
end
|
#ac_rated_output ⇒ Object
16
17
18
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 16
def ac_rated_output
xpath(%w[AC-Rated-Output])
end
|
#building_emission_rate ⇒ Object
20
21
22
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 20
def building_emission_rate
xpath(%w[BER])
end
|
#building_environment ⇒ Object
24
25
26
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 24
def building_environment
xpath(%w[Building-Environment])
end
|
#building_level ⇒ Object
28
29
30
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 28
def building_level
xpath(%w[Building-Level])&.to_i
end
|
#effective_date ⇒ Object
32
33
34
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 32
def effective_date
xpath(%w[Effective-Date])
end
|
#energy_efficiency_rating ⇒ Object
36
37
38
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 36
def energy_efficiency_rating
xpath(%w[Asset-Rating])&.to_i
end
|
40
41
42
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 40
def epc_related_party_disclosure
xpath(%w[EPC-Related-Party-Disclosure])
end
|
#estimated_ac_kw_rating ⇒ Object
44
45
46
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 44
def estimated_ac_kw_rating
xpath(%w[AC-Estimated-Output])&.to_i
end
|
#existing_build_rating ⇒ Object
48
49
50
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 48
def existing_build_rating
xpath(%w[Existing-Stock-Benchmark])&.to_i
end
|
#floor_area ⇒ Object
52
53
54
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 52
def floor_area
xpath(%w[Technical-Information Floor-Area])
end
|
#main_heating_fuel ⇒ Object
56
57
58
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 56
def main_heating_fuel
xpath(%w[Main-Heating-Fuel])
end
|
#new_build_rating ⇒ Object
60
61
62
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 60
def new_build_rating
xpath(%w[New-Build-Benchmark])&.to_i
end
|
#or_assessment_start_date ⇒ Object
68
69
70
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 68
def or_assessment_start_date
xpath(%w[OR-Operational-Rating OR-Assessment-Start-Date])
end
|
#or_availability_date ⇒ Object
72
73
74
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 72
def or_availability_date
xpath(%w[Technical-Information OR-Availability-Date])
end
|
#other_fuel_description ⇒ Object
64
65
66
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 64
def other_fuel_description
xpath(%w[Other-Fuel-Description])
end
|
#primary_energy_use ⇒ Object
76
77
78
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 76
def primary_energy_use
xpath(%w[Energy-Consumption-Current])
end
|
#property_type ⇒ Object
80
81
82
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 80
def property_type
xpath(%w[Property-Type])
end
|
84
85
86
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 84
def related_rrn
xpath(%w[Related-RRN])
end
|
#renewable_sources ⇒ Object
108
109
110
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 108
def renewable_sources
xpath(%w[Renewable-Sources])
end
|
#special_energy_uses ⇒ Object
88
89
90
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 88
def special_energy_uses
xpath(%w[Special-Energy-Uses])
end
|
#standard_emissions ⇒ Object
92
93
94
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 92
def standard_emissions
xpath(%w[SER])
end
|
#target_emissions ⇒ Object
96
97
98
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 96
def target_emissions
xpath(%w[TER])
end
|
#transaction_type ⇒ Object
100
101
102
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 100
def transaction_type
xpath(%w[Transaction-Type])
end
|
#typical_emissions ⇒ Object
104
105
106
|
# File 'lib/view_model/cepc_ni800/cepc.rb', line 104
def typical_emissions
xpath(%w[TYR])
end
|