Sha256: 4f9d73da23cddb2e41b52629b7b4e010de79c76a0cfa26698240ad6211325a0f

Contents?: true

Size: 515 Bytes

Versions: 8

Compression:

Stored size: 515 Bytes

Contents

class EgridRegion < ActiveRecord::Base
  set_primary_key :name
  
  has_many :egrid_subregions, :foreign_key => 'egrid_region_name'
  
  data_miner do
    tap "Brighter Planet's egrid region data", Earth.taps_server
    
    process "pull dependencies" do
      run_data_miner_on_belongs_to_associations
    end
  end
  
  # FIXME TODO someday should calculate this from eGRID data: (USTNGN05 + USTNFI05 - USTCON05) / USTNGN05
  falls_back_on :loss_factor => 0.061879 # calculated using above formula 2/21/2011
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
earth-0.4.8 lib/earth/locality/egrid_region.rb
earth-0.4.7 lib/earth/locality/egrid_region.rb
earth-0.4.6 lib/earth/locality/egrid_region.rb
earth-0.4.5 lib/earth/locality/egrid_region.rb
earth-0.4.4 lib/earth/locality/egrid_region.rb
earth-0.4.3 lib/earth/locality/egrid_region.rb
earth-0.4.2 lib/earth/locality/egrid_region.rb
earth-0.4.1 lib/earth/locality/egrid_region.rb