Sha256: 092d54945b52a33fc1822fdb2e6b81ad3c2d11ea1c96ffaee39e8ec7f0ac61b2

Contents?: true

Size: 521 Bytes

Versions: 38

Compression:

Stored size: 521 Bytes

Contents

class Airline < ActiveRecord::Base
  set_primary_key :iata_code

#  has_many :airline_aircraft, :class_name => 'AirlineAircraft'
#  has_many :seat_classes, :class_name => 'AirlineSeatClass'
  has_many :segments, :class_name => "FlightSegment", :foreign_key => 'airline_iata_code'
#  has_many :airline_aircraft_seat_classes, :class_name => 'AirlineAircraftSeatClass'

  data_miner do
    tap "Brighter Planet's sanitized airlines data", Earth.taps_server
  end
  
  def all_flights_domestic?
    !international?
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
earth-0.2.6 lib/earth/air/airline.rb
earth-0.2.5 lib/earth/air/airline.rb
earth-0.2.4 lib/earth/air/airline.rb
earth-ruby19-0.2.3 lib/earth/air/airline.rb
earth-0.2.3 lib/earth/air/airline.rb
earth-0.2.2 lib/earth/air/airline.rb
earth-0.2.1 lib/earth/air/airline.rb
earth-0.2.0 lib/earth/air/airline.rb
earth-0.1.4 lib/earth/air/airline.rb
earth-0.1.3 lib/earth/air/airline.rb
earth-0.1.2 lib/earth/air/airline.rb
earth-0.1.1 lib/earth/air/airline.rb
earth-0.1.0 lib/earth/air/airline.rb
earth-0.0.43 lib/earth/air/airline.rb
earth-0.0.42 lib/earth/air/airline.rb
earth-0.0.41 lib/earth/air/airline.rb
earth-0.0.40 lib/earth/air/airline.rb
earth-0.0.39 lib/earth/air/airline.rb
earth-0.0.38 lib/earth/air/airline.rb
earth-0.0.37 lib/earth/air/airline.rb