epb_view_models 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/api/schemas/xml/RdSAP-Schema-NI-19.0/RdSAP/Templates/EPC-CollectedData.xsd +13 -12
- data/lib/epb_view_models.rb +1 -1
- data/lib/helper/energy_band_calculator.rb +1 -1
- data/lib/helper/xml_enums_to_output.rb +264 -114
- data/lib/presenter/export/domestic.rb +1 -1
- data/lib/presenter/rd_sap/report.rb +21 -11
- data/lib/presenter/sap/report.rb +19 -7
- data/lib/presenter/sap/summary.rb +1 -1
- data/lib/view_model/domestic_epc_view_model.rb +4 -0
- data/lib/view_model/rd_sap_schema_200/common_schema.rb +0 -4
- data/lib/view_model/rd_sap_schema_ni_200/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_102/common_schema.rb +5 -6
- data/lib/view_model/sap_schema_102/rdsap.rb +4 -0
- data/lib/view_model/sap_schema_110/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_110/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_110/sap.rb +8 -0
- data/lib/view_model/sap_schema_112/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_112/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_112/sap.rb +8 -0
- data/lib/view_model/sap_schema_120/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_120/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_120/sap.rb +8 -0
- data/lib/view_model/sap_schema_130/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_130/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_130/sap.rb +8 -0
- data/lib/view_model/sap_schema_140/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_140/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_140/sap.rb +8 -0
- data/lib/view_model/sap_schema_141/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_141/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_141/sap.rb +8 -0
- data/lib/view_model/sap_schema_142/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_142/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_142/sap.rb +8 -0
- data/lib/view_model/sap_schema_150/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_150/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_150/sap.rb +8 -0
- data/lib/view_model/sap_schema_160/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_160/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_160/sap.rb +8 -0
- data/lib/view_model/sap_schema_161/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_161/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_161/sap.rb +8 -0
- data/lib/view_model/sap_schema_162/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_162/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_162/sap.rb +8 -0
- data/lib/view_model/sap_schema_163/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_163/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_163/sap.rb +8 -0
- data/lib/view_model/sap_schema_170/common_schema.rb +4 -0
- data/lib/view_model/sap_schema_171/common_schema.rb +4 -0
- data/lib/view_model/sap_schema_1800/common_schema.rb +4 -4
- data/lib/view_model/sap_schema_ni_112/common_schema.rb +1 -5
- data/lib/view_model/sap_schema_ni_112/rdsap.rb +13 -0
- data/lib/view_model/sap_schema_ni_112/sap.rb +8 -0
- data/lib/view_model/sap_schema_ni_120/common_schema.rb +1 -5
- data/lib/view_model/sap_schema_ni_120/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_ni_120/sap.rb +8 -0
- data/lib/view_model/sap_schema_ni_130/common_schema.rb +1 -5
- data/lib/view_model/sap_schema_ni_130/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_ni_130/sap.rb +8 -0
- data/lib/view_model/sap_schema_ni_140/common_schema.rb +1 -5
- data/lib/view_model/sap_schema_ni_140/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_ni_140/sap.rb +8 -0
- data/lib/view_model/sap_schema_ni_141/common_schema.rb +1 -5
- data/lib/view_model/sap_schema_ni_141/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_ni_141/sap.rb +8 -0
- data/lib/view_model/sap_schema_ni_142/common_schema.rb +1 -5
- data/lib/view_model/sap_schema_ni_142/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_ni_142/sap.rb +8 -0
- data/lib/view_model/sap_schema_ni_150/common_schema.rb +1 -5
- data/lib/view_model/sap_schema_ni_150/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_ni_150/sap.rb +8 -0
- data/lib/view_model/sap_schema_ni_160/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_ni_160/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_ni_160/sap.rb +8 -0
- data/lib/view_model/sap_schema_ni_161/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_ni_161/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_ni_161/sap.rb +8 -0
- data/lib/view_model/sap_schema_ni_170/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_ni_170/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_ni_170/sap.rb +8 -0
- data/lib/view_model/sap_schema_ni_171/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_ni_171/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_ni_171/sap.rb +8 -0
- data/lib/view_model/sap_schema_ni_172/common_schema.rb +0 -4
- data/lib/view_model/sap_schema_ni_172/rdsap.rb +8 -0
- data/lib/view_model/sap_schema_ni_172/sap.rb +8 -0
- data/lib/view_model/sap_schema_ni_173/common_schema.rb +4 -0
- data/lib/view_model/sap_schema_ni_174/common_schema.rb +4 -0
- data/lib/view_model/sap_schema_ni_1800/common_schema.rb +4 -4
- metadata +2 -3
- data/.DS_Store +0 -0
@@ -186,7 +186,7 @@ module ViewModel
|
|
186
186
|
end
|
187
187
|
|
188
188
|
def tenure
|
189
|
-
|
189
|
+
nil
|
190
190
|
end
|
191
191
|
|
192
192
|
def transaction_type
|
@@ -231,10 +231,6 @@ module ViewModel
|
|
231
231
|
xpath(%w[Secondary-Fuel-Type])
|
232
232
|
end
|
233
233
|
|
234
|
-
def water_heating_fuel
|
235
|
-
xpath(%w[Water-Fuel-Type])
|
236
|
-
end
|
237
|
-
|
238
234
|
def type_of_assessment
|
239
235
|
case xpath(%w[Report-Type]).to_i
|
240
236
|
when 1
|
@@ -183,7 +183,7 @@ module ViewModel
|
|
183
183
|
end
|
184
184
|
|
185
185
|
def tenure
|
186
|
-
|
186
|
+
nil
|
187
187
|
end
|
188
188
|
|
189
189
|
def transaction_type
|
@@ -228,10 +228,6 @@ module ViewModel
|
|
228
228
|
xpath(%w[Secondary-Fuel-Type])
|
229
229
|
end
|
230
230
|
|
231
|
-
def water_heating_fuel
|
232
|
-
xpath(%w[Water-Fuel-Type])
|
233
|
-
end
|
234
|
-
|
235
231
|
def type_of_assessment
|
236
232
|
case xpath(%w[Report-Type]).to_i
|
237
233
|
when 1
|
@@ -183,7 +183,7 @@ module ViewModel
|
|
183
183
|
end
|
184
184
|
|
185
185
|
def tenure
|
186
|
-
|
186
|
+
nil
|
187
187
|
end
|
188
188
|
|
189
189
|
def transaction_type
|
@@ -228,10 +228,6 @@ module ViewModel
|
|
228
228
|
xpath(%w[Secondary-Fuel-Type])
|
229
229
|
end
|
230
230
|
|
231
|
-
def water_heating_fuel
|
232
|
-
xpath(%w[Water-Fuel-Type])
|
233
|
-
end
|
234
|
-
|
235
231
|
def type_of_assessment
|
236
232
|
case xpath(%w[Report-Type]).to_i
|
237
233
|
when 1
|
@@ -183,7 +183,7 @@ module ViewModel
|
|
183
183
|
end
|
184
184
|
|
185
185
|
def tenure
|
186
|
-
|
186
|
+
nil
|
187
187
|
end
|
188
188
|
|
189
189
|
def transaction_type
|
@@ -228,10 +228,6 @@ module ViewModel
|
|
228
228
|
xpath(%w[Secondary-Fuel-Type])
|
229
229
|
end
|
230
230
|
|
231
|
-
def water_heating_fuel
|
232
|
-
xpath(%w[Water-Fuel-Type])
|
233
|
-
end
|
234
|
-
|
235
231
|
def type_of_assessment
|
236
232
|
case xpath(%w[Report-Type]).to_i
|
237
233
|
when 1
|
@@ -183,7 +183,7 @@ module ViewModel
|
|
183
183
|
end
|
184
184
|
|
185
185
|
def tenure
|
186
|
-
|
186
|
+
nil
|
187
187
|
end
|
188
188
|
|
189
189
|
def transaction_type
|
@@ -228,10 +228,6 @@ module ViewModel
|
|
228
228
|
xpath(%w[Secondary-Fuel-Type])
|
229
229
|
end
|
230
230
|
|
231
|
-
def water_heating_fuel
|
232
|
-
xpath(%w[Water-Fuel-Type])
|
233
|
-
end
|
234
|
-
|
235
231
|
def type_of_assessment
|
236
232
|
case xpath(%w[Report-Type]).to_i
|
237
233
|
when 1
|
@@ -183,7 +183,7 @@ module ViewModel
|
|
183
183
|
end
|
184
184
|
|
185
185
|
def tenure
|
186
|
-
|
186
|
+
nil
|
187
187
|
end
|
188
188
|
|
189
189
|
def transaction_type
|
@@ -228,10 +228,6 @@ module ViewModel
|
|
228
228
|
xpath(%w[Secondary-Fuel-Type])
|
229
229
|
end
|
230
230
|
|
231
|
-
def water_heating_fuel
|
232
|
-
xpath(%w[Water-Fuel-Type])
|
233
|
-
end
|
234
|
-
|
235
231
|
def type_of_assessment
|
236
232
|
case xpath(%w[Report-Type]).to_i
|
237
233
|
when 1
|