Sha256: 22968d1a05fe41d9fa69c710c45c310a05bd82ae24d125535d36b8f34b88a828

Contents?: true

Size: 905 Bytes

Versions: 6

Compression:

Stored size: 905 Bytes

Contents

module ViewModel
  module SapSchemaNi112
    class Sap < ViewModel::SapSchemaNi112::CommonSchema
      def cylinder_insul_thickness
        xpath(%w[Hot-Water-Store-Insulation-Thickness])
      end

      def cylinder_insulation_type
        xpath(%w[Hot-Water-Store-Insulation-Type])
      end

      def cylinder_size
        xpath(%w[Hot-Water-Store-Size])
      end

      def has_cylinder_thermostat
        xpath(%w[Has-Cylinder-Thermostat])
      end

      def mech_vent_sys_index_number
        xpath(%w[Mechanical-Vent-System-Index-Number])&.to_i
      end

      def mechanical_vent_data_source
        xpath(%w[Mechanical-Ventilation-Data-Source])
      end

      def thermal_store
        xpath(%w[Thermal-Store])
      end

      def ventilation_type
        xpath(%w[Ventilation-Type])
      end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
epb_view_models-2.0.5 lib/view_model/sap_schema_ni_112/sap.rb
epb_view_models-2.0.4 lib/view_model/sap_schema_ni_112/sap.rb
epb_view_models-2.0.3 lib/view_model/sap_schema_ni_112/sap.rb
epb_view_models-2.0.2 lib/view_model/sap_schema_ni_112/sap.rb
epb_view_models-2.0.1 lib/view_model/sap_schema_ni_112/sap.rb
epb_view_models-2.0.0 lib/view_model/sap_schema_ni_112/sap.rb