Skip to content

Instantly share code, notes, and snippets.

@pumpkincouture
Created September 5, 2014 15:27
Show Gist options
  • Save pumpkincouture/f9a4df2a60aaf485348c to your computer and use it in GitHub Desktop.
Save pumpkincouture/f9a4df2a60aaf485348c to your computer and use it in GitHub Desktop.
class Flights
attr_reader :origin, :destination, :departure, :arrival, :price
def initialize(list)
@origin = list[0]
@destination = list[1]
@departure = list[2]
@arrival = list[3]
@price = list[4]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment