Sha256: 6647fe9521f1aa61606508c22274f3445222bb9c5f0b13b012833d5103fdfdd2

Contents?: true

Size: 435 Bytes

Versions: 11

Compression:

Stored size: 435 Bytes

Contents

ResidenceClass.class_eval do
  data_miner do
    schema do
      string :name
    end
    
    process "derive from ResidentialEnergyConsumptionSurveyResponse" do
      ResidentialEnergyConsumptionSurveyResponse.run_data_miner!
      INSERT_IGNORE %{INTO residence_classes(name)
        SELECT DISTINCT recs_responses.residence_class_id FROM recs_responses WHERE LENGTH(recs_responses.residence_class_id) > 0
      }
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
earth-0.4.12 lib/earth/residence/residence_class/data_miner.rb
earth-0.4.11 lib/earth/residence/residence_class/data_miner.rb
earth-0.4.10 lib/earth/residence/residence_class/data_miner.rb
earth-0.4.9 lib/earth/residence/residence_class/data_miner.rb
earth-0.4.8 lib/earth/residence/residence_class/data_miner.rb
earth-0.4.7 lib/earth/residence/residence_class/data_miner.rb
earth-0.4.6 lib/earth/residence/residence_class/data_miner.rb
earth-0.4.5 lib/earth/residence/residence_class/data_miner.rb
earth-0.4.4 lib/earth/residence/residence_class/data_miner.rb
earth-0.4.3 lib/earth/residence/residence_class/data_miner.rb
earth-0.4.2 lib/earth/residence/residence_class/data_miner.rb