Sha256: c612a30fdaf1d840e94172b1de510c38cc3dd25ee5109c969a7f0221fee760fe

Contents?: true

Size: 470 Bytes

Versions: 16

Compression:

Stored size: 470 Bytes

Contents

class Airport < ActiveRecord::Base
  set_primary_key :iata_code
  
  belongs_to :country, :foreign_key => 'country_iso_3166_code', :primary_key => 'iso_3166_code'
  
  acts_as_mappable :default_units => :nms,
                   :lat_column_name => :latitude,
                   :lng_column_name => :longitude

  col :iata_code
  col :name
  col :city
  col :country_name
  col :country_iso_3166_code
  col :latitude, :type => :float
  col :longitude, :type => :float
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
earth-0.11.7 lib/earth/air/airport.rb
earth-0.11.6 lib/earth/air/airport.rb
earth-0.11.5 lib/earth/air/airport.rb
earth-0.11.4 lib/earth/air/airport.rb
earth-0.11.3 lib/earth/air/airport.rb
earth-0.11.2 lib/earth/air/airport.rb
earth-0.11.1 lib/earth/air/airport.rb
earth-0.11.0 lib/earth/air/airport.rb
earth-0.7.0 lib/earth/air/airport.rb
earth-0.6.6 lib/earth/air/airport.rb
earth-0.6.5 lib/earth/air/airport.rb
earth-0.6.4 lib/earth/air/airport.rb
earth-0.6.3 lib/earth/air/airport.rb
earth-0.6.2 lib/earth/air/airport.rb
earth-0.6.1 lib/earth/air/airport.rb
earth-0.6.0 lib/earth/air/airport.rb