Last active
December 12, 2015 05:38
-
-
Save everm1nd/4722754 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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