Sha256: f84490829b48c293b930b99b554772394bbce8424ebff11224ddae66f22591fd

Contents?: true

Size: 867 Bytes

Versions: 38

Compression:

Stored size: 867 Bytes

Contents

class CensusDivision < ActiveRecord::Base
  set_primary_key :number
  
  belongs_to :census_region, :foreign_key => 'census_region_number'
  has_many :states, :foreign_key => 'census_division_number'
  has_many :zip_codes, :through => :states
  has_many :climate_divisions, :through => :states
  has_many :residential_energy_consumption_survey_responses, :foreign_key => 'census_division_number'
  
  falls_back_on :meeting_building_natural_gas_intensity => 0.011973,
                :meeting_building_fuel_oil_intensity => 0.0037381,
                :meeting_building_electricity_intensity => 0.072444,
                :meeting_building_district_heat_intensity => 3458.7
  
  data_miner do
    tap "Brighter Planet's sanitized census divisions", Earth.taps_server

    process "pull dependencies" do
      run_data_miner_on_belongs_to_associations
    end
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
earth-0.3.15 lib/earth/locality/census_division.rb
earth-0.3.14 lib/earth/locality/census_division.rb
earth-0.3.13 lib/earth/locality/census_division.rb
earth-0.3.11 lib/earth/locality/census_division.rb
earth-0.3.10 lib/earth/locality/census_division.rb
earth-0.3.9 lib/earth/locality/census_division.rb
earth-0.3.8 lib/earth/locality/census_division.rb
earth-0.3.7 lib/earth/locality/census_division.rb
earth-0.3.6 lib/earth/locality/census_division.rb
earth-0.3.5 lib/earth/locality/census_division.rb
earth-0.3.4 lib/earth/locality/census_division.rb
earth-0.3.3 lib/earth/locality/census_division.rb
earth-0.3.2 lib/earth/locality/census_division.rb
earth-0.3.1 lib/earth/locality/census_division.rb
earth-0.3.0 lib/earth/locality/census_division.rb
earth-0.2.14 lib/earth/locality/census_division.rb
earth-0.2.13 lib/earth/locality/census_division.rb
earth-0.2.12 lib/earth/locality/census_division.rb
earth-0.2.11 lib/earth/locality/census_division.rb
earth-0.2.9 lib/earth/locality/census_division.rb