Sha256: 6a50051e8d0bec509fe71c6864db6df46afcced6870863628ae67ca76bddc24e

Contents?: true

Size: 485 Bytes

Versions: 24

Compression:

Stored size: 485 Bytes

Contents

class Country < ActiveRecord::Base
  set_primary_key :iso_3166_code
  
  falls_back_on :flight_route_inefficiency_factor => 1.10 # for international flights - this is the larger (European) factor from Kettunen et al. (2005) http://www.atmseminar.org/seminarContent/seminar6/papers/p_055_MPM.pdf
  
  data_miner do
    tap "Brighter Planet's sanitized countries list", Earth.taps_server
  end
  
  class << self
    def united_states
      find_by_iso_3166_code('US')
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

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