Skip to content

Instantly share code, notes, and snippets.

@gotar
Created April 5, 2012 08:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gotar/2309245 to your computer and use it in GitHub Desktop.
Save gotar/2309245 to your computer and use it in GitHub Desktop.
ruby-1.9.2-p180 :006 > y CheapestFlight.collect_data(json)
---
- :stops: "0"
:faretype: AMADEUS_PUBLISHED
:farebase: "[[\"USALE\"]]"
:airlines: CY
:is_mixed: "0"
:roundtrip: false
:arr: SKG
:dep: ATH
:wing: gr
:arr_time: 2012-04-07 11:35:00 +02:00
:dep_time: 2012-04-07 11:35:00 +02:00
:price: 65.64
:arr_date: 2012-04-07
:dep_date: 2012-04-07
:tax: 45.64
:face_value: 20
:booking_class: U
- :stops: "0"
:faretype: AMADEUS_PUBLISHED
:farebase: "[[\"USALE\"]]"
:airlines: CY
:is_mixed: "0"
:roundtrip: false
:arr: ATH
:dep: SKG
:wing: gr
:arr_time: 2012-04-10 11:55:00 +02:00
:dep_time: 2012-04-10 11:55:00 +02:00
:price: 39
:arr_date: 2012-04-10
:dep_date: 2012-04-10
:tax: 27
:face_value: 12
:booking_class: X
- :stops: 0; 0
:faretype: AMADEUS_PUBLISHED
:farebase: "[[\"USALE\"]]"
:airlines: CY
:is_mixed: "0"
:roundtrip: true
:arr: SKG
:dep: ATH
:wing: gr
:arr_time: 2012-04-10 11:55:00 +02:00
:dep_time: 2012-04-07 11:35:00 +02:00
:price: 103.64
:arr_date: 2012-04-10
:dep_date: 2012-04-07
:tax: 72.64
:face_value: 31
:booking_class: U; X
=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment