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.2.8 lib/earth/locality/census_division.rb
earth-0.2.7 lib/earth/locality/census_division.rb
earth-0.2.6 lib/earth/locality/census_division.rb
earth-0.2.5 lib/earth/locality/census_division.rb
earth-0.2.4 lib/earth/locality/census_division.rb
earth-ruby19-0.2.3 lib/earth/locality/census_division.rb
earth-0.2.3 lib/earth/locality/census_division.rb
earth-0.2.2 lib/earth/locality/census_division.rb
earth-0.2.1 lib/earth/locality/census_division.rb
earth-0.2.0 lib/earth/locality/census_division.rb
earth-0.1.4 lib/earth/locality/census_division.rb
earth-0.1.3 lib/earth/locality/census_division.rb
earth-0.1.2 lib/earth/locality/census_division.rb
earth-0.1.1 lib/earth/locality/census_division.rb
earth-0.1.0 lib/earth/locality/census_division.rb
earth-0.0.43 lib/earth/locality/census_division.rb
earth-0.0.42 lib/earth/locality/census_division.rb
earth-0.0.41 lib/earth/locality/census_division.rb