Sha256: 5013283c60fa71e3be8aec95f6eb2713196098b349111b0b4f9427cedc1006da

Contents?: true

Size: 610 Bytes

Versions: 61

Compression:

Stored size: 610 Bytes

Contents

class EgridSubregion < ActiveRecord::Base
  set_primary_key :abbreviation
  
  has_many :zip_codes, :foreign_key => 'egrid_subregion_abbreviation'
  belongs_to :egrid_region, :foreign_key => 'egrid_region_name'
  
  falls_back_on :electricity_emission_factor => 1.404.pounds.to(:kilograms) # kg CO2 / kWh https://brighterplanet.sifterapp.com/projects/30/issues/437?return_uri=%2Fprojects%2F30%2Fissues%3Fa%3D79%26s%3D1-2
  
  data_miner do
    tap "Brighter Planet's egrid subregion data", Earth.taps_server

    process "pull dependencies" do
      run_data_miner_on_belongs_to_associations
    end
  end
end

Version data entries

61 entries across 61 versions & 2 rubygems

Version Path
earth-0.2.9 lib/earth/locality/egrid_subregion.rb
earth-0.2.8 lib/earth/locality/egrid_subregion.rb
earth-0.2.7 lib/earth/locality/egrid_subregion.rb
earth-0.2.6 lib/earth/locality/egrid_subregion.rb
earth-0.2.5 lib/earth/locality/egrid_subregion.rb
earth-0.2.4 lib/earth/locality/egrid_subregion.rb
earth-ruby19-0.2.3 lib/earth/locality/egrid_subregion.rb
earth-0.2.3 lib/earth/locality/egrid_subregion.rb
earth-0.2.2 lib/earth/locality/egrid_subregion.rb
earth-0.2.1 lib/earth/locality/egrid_subregion.rb
earth-0.2.0 lib/earth/locality/egrid_subregion.rb
earth-0.1.4 lib/earth/locality/egrid_subregion.rb
earth-0.1.3 lib/earth/locality/egrid_subregion.rb
earth-0.1.2 lib/earth/locality/egrid_subregion.rb
earth-0.1.1 lib/earth/locality/egrid_subregion.rb
earth-0.1.0 lib/earth/locality/egrid_subregion.rb
earth-0.0.43 lib/earth/locality/egrid_subregion.rb
earth-0.0.42 lib/earth/locality/egrid_subregion.rb
earth-0.0.41 lib/earth/locality/egrid_subregion.rb
earth-0.0.40 lib/earth/locality/egrid_subregion.rb