Skip to content

Instantly share code, notes, and snippets.

@everm1nd
Last active December 12, 2015 05:38
Show Gist options
  • Save everm1nd/4722754 to your computer and use it in GitHub Desktop.
Save everm1nd/4722754 to your computer and use it in GitHub Desktop.
def parse data
trips = get_trips data
end
def get_trips data
trips = get_trips_data data
trips.each do |trip|
flight_sets = get_flight_sets trip
end
end
def get_flight_sets trip
flight_sets = get_flight_sets_data trip
flight_sets.each do |flight_set|
flight = get_flights_data flight_set
end
end
def get_flights flight_set
flights = get_flights_data flight_set
flights.each do |flight|
flight = get_flight_data
end
end
private
def get_trips_data
end
def get_flight_sets_data
end
def get_flights_data
end
def get_flight_data
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment