Sha256: a05d31526e06e05ac56867afd68bbd69cdc5a15533031b167649afbb134d6ee9

Contents?: true

Size: 532 Bytes

Versions: 29

Compression:

Stored size: 532 Bytes

Contents

Urbanity.class_eval do
  data_miner do
    schema do
      string 'name'
    end

    process "derive from ResidentialEnergyConsumptionSurveyResponse" do
      ResidentialEnergyConsumptionSurveyResponse.run_data_miner!
      connection.execute %{
        INSERT IGNORE INTO urbanities(name)
        SELECT DISTINCT residential_energy_consumption_survey_responses.urbanity_id FROM residential_energy_consumption_survey_responses WHERE LENGTH(residential_energy_consumption_survey_responses.urbanity_id) > 0
      }
    end
  end
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
earth-0.3.11 lib/earth/locality/urbanity/data_miner.rb
earth-0.3.10 lib/earth/locality/urbanity/data_miner.rb
earth-0.3.9 lib/earth/locality/urbanity/data_miner.rb
earth-0.3.8 lib/earth/locality/urbanity/data_miner.rb
earth-0.3.7 lib/earth/locality/urbanity/data_miner.rb
earth-0.3.6 lib/earth/locality/urbanity/data_miner.rb
earth-0.3.5 lib/earth/locality/urbanity/data_miner.rb
earth-0.3.4 lib/earth/locality/urbanity/data_miner.rb
earth-0.3.3 lib/earth/locality/urbanity/data_miner.rb
earth-0.3.2 lib/earth/locality/urbanity/data_miner.rb
earth-0.3.1 lib/earth/locality/urbanity/data_miner.rb
earth-0.3.0 lib/earth/locality/urbanity/data_miner.rb
earth-0.2.14 lib/earth/locality/urbanity/data_miner.rb
earth-0.2.13 lib/earth/locality/urbanity/data_miner.rb
earth-0.2.12 lib/earth/locality/urbanity/data_miner.rb
earth-0.2.11 lib/earth/locality/urbanity/data_miner.rb
earth-0.2.9 lib/earth/locality/urbanity/data_miner.rb
earth-0.2.8 lib/earth/locality/urbanity/data_miner.rb
earth-0.2.7 lib/earth/locality/urbanity/data_miner.rb
earth-0.2.6 lib/earth/locality/urbanity/data_miner.rb