Skip to content

Instantly share code, notes, and snippets.

@fourfour
Created March 28, 2014 21:03
Show Gist options
  • Save fourfour/9842945 to your computer and use it in GitHub Desktop.
Save fourfour/9842945 to your computer and use it in GitHub Desktop.
{"took"=>4, "timed_out"=>false, "_shards"=>{"total"=>5, "successful"=>5, "failed"=>0}, "hits"=>{"total"=>61, "max_score"=>nil, "hits"=>[{"_index"=>"tee_times", "_type"=>"result", "_id"=>"dbs4f7C4RoClwTkq0ZdB7w", "_score"=>nil, "_source"=>{"golf_course"=>{"golf_center_id"=>7206, "par"=>69, "total_yards"=>6274, "latitude"=>34.175205, "longitude"=>-118.87611, "full_name"=>"Los Robles Greens Golf Course", "name"=>"Los Robles Greens", "street_address_line_one"=>"299 South Moorpark Road", "street_address_line_two"=>nil, "city"=>"Thousand Oaks", "state"=>"CA", "postal_code"=>"91361", "phone_number"=>"(805) 495-6421", "description"=>"Designed by Bob E Baldock and opened in 1964, Los Robles Greens Golf Course is a par 70, 18 hole course located in Thousand Oaks. Stretching to 6274 yards with a slope of 131, golfers should have an awesome round of golf.", "website"=>"www.losroblesgreens.com", "bookable"=>true, "flyover_url"=>nil, "hd_flyover_url"=>nil, "facility_id"=>3565, "number_of_holes"=>[], "formatted_local_offset"=>"-07:00"}, "tee_times"=>[{"tee_time"=>{"id"=>209723323, "type"=>"DISC", "starts_at"=>"2014-03-26T07:04:00-07:00", "number_of_holes"=>[18], "number_of_players"=>[1], "price"=>5600, "hot_deal"=>false, "discount"=>"0.0", "details"=>[{"present_in_icon_list"=>true, "name"=>"18 Hole Time", "description"=>"Normal Icon", "image_url"=>"https://s3.amazonaws.com/golfcenter-tee-time-icons/i_18.gif"}, {"present_in_icon_list"=>true, "name"=>"Cart Included", "description"=>"Normal Icon", "image_url"=>"https://s3.amazonaws.com/golfcenter-tee-time-icons/i_cart.gif"}], "policy"=>"", "information"=>"", "booking_expenses"=>{"green_fees"=>5600, "transaction_fee"=>249, "tax"=>0, "due_online"=>249, "number_of_players"=>1}}}], "location"=>{"lat"=>34.175205, "lon"=>-118.87611}}, "sort"=>[1395842640000]}, {"_index"=>"tee_times", "_type"=>"result", "_id"=>"grhXdLCASVeQiHko4zXw7A", "_score"=>nil, "_source"=>{"golf_course"=>{"golf_center_id"=>7206, "par"=>69, "total_yards"=>6274, "latitude"=>34.175205, "longitude"=>-118.87611, "full_name"=>"Los Robles Greens Golf Course", "name"=>"Los Robles Greens", "street_address_line_one"=>"299 South Moorpark Road", "street_address_line_two"=>nil, "city"=>"Thousand Oaks", "state"=>"CA", "postal_code"=>"91361", "phone_number"=>"(805) 495-6421", "description"=>"Designed by Bob E Baldock and opened in 1964, Los Robles Greens Golf Course is a par 70, 18 hole course located in Thousand Oaks. Stretching to 6274 yards with a slope of 131, golfers should have an awesome round of golf.", "website"=>"www.losroblesgreens.com", "bookable"=>true, "flyover_url"=>nil, "hd_flyover_url"=>nil, "facility_id"=>3565, "number_of_holes"=>[], "formatted_local_offset"=>"-07:00"}, "tee_times"=>[{"tee_time"=>{"id"=>209723324, "type"=>"DISC", "starts_at"=>"2014-03-26T07:12:00-07:00", "number_of_holes"=>[18], "number_of_players"=>[1, 2, 3, 4], "price"=>5600, "hot_deal"=>false, "discount"=>"0.0", "details"=>[{"present_in_icon_list"=>true, "name"=>"18 Hole Time", "description"=>"Normal Icon", "image_url"=>"https://s3.amazonaws.com/golfcenter-tee-time-icons/i_18.gif"}, {"present_in_icon_list"=>true, "name"=>"Cart Included", "description"=>"Normal Icon", "image_url"=>"https://s3.amazonaws.com/golfcenter-tee-time-icons/i_cart.gif"}], "policy"=>"", "information"=>"", "booking_expenses"=>{"green_fees"=>5600, "transaction_fee"=>249, "tax"=>0, "due_online"=>249, "number_of_players"=>1}}}], "location"=>{"lat"=>34.175205, "lon"=>-118.87611}}, "sort"=>[1395843120000]}, {"_index"=>"tee_times", "_type"=>"result", "_id"=>"fNiMrtXIRVe9pNZVIxlHBw", "_score"=>nil, "_source"=>{"golf_course"=>{"golf_center_id"=>7206, "par"=>69, "total_yards"=>6274, "latitude"=>34.175205, "longitude"=>-118.87611, "full_name"=>"Los Robles Greens Golf Course", "name"=>"Los Robles Greens", "street_address_line_one"=>"299 South Moorpark Road", "street_address_line_two"=>nil, "city"=>"Thousand Oaks", "state"=>"CA", "postal_code"=>"91361", "phone_number"=>"(805) 495-6421", "description"=>"Designed by Bob E Baldock and opened in 1964, Los Robles Greens Golf Course is a par 70, 18 hole course located in Thousand Oaks. Stretching to 6274 yards with a slope of 131, golfers should have an awesome round of golf.", "website"=>"www.losroblesgreens.com", "bookable"=>true, "flyover_url"=>nil, "hd_flyover_url"=>nil, "facility_id"=>3565, "number_of_holes"=>[], "formatted_local_offset"=>"-07:00"}, "tee_times"=>[{"tee_time"=>{"id"=>210023871, "type"=>"DISC", "starts_at"=>"2014-03-26T07:28:00-07:00", "number_of_holes"=>[18], "number_of_players"=>[1, 2, 3, 4], "price"=>4200, "hot_deal"=>true, "discount"=>"0.207547169811320755", "details"=>[{"present_in_icon_list"=>true, "name"=>"HOT DEAL - Prepaid Time", "description"=>"Normal Icon", "image_url"=>"https://s3.amazonaws.com/golfcenter-tee-time-icons/i_pre_paid_online.gif"}, {"present_in_icon_list"=>true, "name"=>"Aerification Alert", "description"=>"Normal Icon", "image_url"=>"https://s3.amazonaws.com/golfcenter-tee-time-icons/aerification.gif"}, {"present_in_icon_list"=>true, "name"=>"Cart Included", "description"=>"Normal Icon", "image_url"=>"https://s3.amazonaws.com/golfcenter-tee-time-icons/i_cart.gif"}, {"present_in_icon_list"=>true, "name"=>"GPS Included", "description"=>"Normal Icon", "image_url"=>"https://s3.amazonaws.com/golfcenter-tee-time-icons/i_gps.gif"}], "policy"=>"", "information"=>"", "booking_expenses"=>{"green_fees"=>4200, "transaction_fee"=>249, "tax"=>0, "due_online"=>4449, "number_of_players"=>1}}}], "location"=>{"lat"=>34.175205, "lon"=>-118.87611}}, "sort"=>[1395844080000]}, {"_index"=>"tee_times", "_type"=>"result", "_id"=>"ReBfVZXPQ4ukLmRv-VQ-tg", "_score"=>nil, "_source"=>{"golf_course"=>{"golf_center_id"=>7206, "par"=>69, "total_yards"=>6274, "latitude"=>34.175205, "longitude"=>-118.87611, "full_name"=>"Los Robles Greens Golf Course", "name"=>"Los Robles Greens", "street_address_line_one"=>"299 South Moorpark Road", "street_address_line_two"=>nil, "city"=>"Thousand Oaks", "state"=>"CA", "postal_code"=>"91361", "phone_number"=>"(805) 495-6421", "description"=>"Designed by Bob E Baldock and opened in 1964, Los Robles Greens Golf Course is a par 70, 18 hole course located in Thousand Oaks. Stretching to 6274 yards with a slope of 131, golfers should have an awesome round of golf.", "website"=>"www.losroblesgreens.com", "bookable"=>true, "flyover_url"=>nil, "hd_flyover_url"=>nil, "facility_id"=>3565, "number_of_holes"=>[], "formatted_local_offset"=>"-07:00"}, "tee_times"=>[{"tee_time"=>{"id"=>210023871, "type"=>"DISC", "starts_at"=>"2014-03-26T07:28:00-07:00", "number_of_holes"=>[18], "number_of_players"=>[1, 2, 3, 4], "price"=>4200, "hot_deal"=>true, "discount"=>"0.207547169811320755", "details"=>[{"present_in_icon_list"=>true, "name"=>"HOT DEAL - Prepaid Time", "description"=>"Normal Icon", "image_url"=>"https://s3.amazonaws.com/golfcenter-tee-time-icons/i_pre_paid_online.gif"}, {"present_in_icon_list"=>true, "name"=>"Aerification Alert", "description"=>"Normal Icon", "image_url"=>"https://s3.amazonaws.com/golfcenter-tee-time-icons/aerification.gif"}, {"present_in_icon_list"=>true, "name"=>"Cart Included", "description"=>"Normal Icon", "image_url"=>"https://s3.amazonaws.com/golfcenter-tee-time-icons/i_cart.gif"}, {"present_in_icon_list"=>true, "name"=>"GPS Included", "description"=>"Normal Icon", "image_url"=>"https://s3.amazonaws.com/golfcenter-tee-time-icons/i_gps.gif"}], "policy"=>"", "information"=>"", "booking_expenses"=>{"green_fees"=>4200, "transaction_fee"=>249, "tax"=>0, "due_online"=>4449, "number_of_players"=>1}}}], "location"=>{"lat"=>34.175205, "lon"=>-118.87611}}, "sort"=>[1395844080000]}, {"_index"=>"tee_times", "_type"=>"result", "_id"=>"ASZQkIJ2R0KPHkSTJja2_Q", "_score"=>nil, "_source"=>{"golf_course"=>{"golf_center_id"=>7206, "par"=>69, "total_yards"=>6274, "latitude"=>34.175205, "longitude"=>-118.87611, "full_name"=>"Los Robles Greens Golf Course", "name"=>"Los Robles Greens", "street_address_line_one"=>"299 South Moorpark Road", "street_address_line_two"=>nil, "city"=>"Thousand Oaks", "state"=>"CA", "postal_code"=>"91361", "phone_number"=>"(805) 495-6421", "description"=>"Designed by Bob E Baldock and opened in 1964, Los Robles Greens Golf Course is a par 70, 18 hole course located in Thousand Oaks. Stretching to 6274 yards with a slope of 131, golfers should have an awesome round of golf.", "website"=>"www.losroblesgreens.com", "bookable"=>true, "flyover_url"=>nil, "hd_flyover_url"=>nil, "facility_id"=>3565, "number_of_holes"=>[], "formatted_local_offset"=>"-07:00"}, "tee_times"=>[{"tee_time"=>{"id"=>209723326, "type"=>"DISC", "starts_at"=>"2014-03-26T07:28:00-07:00", "number_of_holes"=>[18], "number_of_players"=>[1, 2, 3, 4], "price"=>5600, "hot_deal"=>false, "discount"=>"0.0", "details"=>[{"present_in_icon_list"=>true, "name"=>"18 Hole Time", "description"=>"Normal Icon", "image_url"=>"https://s3.amazonaws.com/golfcenter-tee-time-icons/i_18.gif"}, {"present_in_icon_list"=>true, "name"=>"Cart Included", "description"=>"Normal Icon", "image_url"=>"https://s3.amazonaws.com/golfcenter-tee-time-icons/i_cart.gif"}], "policy"=>"", "information"=>"", "booking_expenses"=>{"green_fees"=>5600, "transaction_fee"=>249, "tax"=>0, "due_online"=>249, "number_of_players"=>1}}}], "location"=>{"lat"=>34.175205, "lon"=>-118.87611}}, "sort"=>[1395844080000]}, {"_index"=>"tee_times", "_type"=>"result", "_id"=>"TV0vL9nQQMCgfFyTwOmPmw", "_score"=>nil, "_source"=>{"golf_course"=>{"golf_center_id"=>7206, "par"=>69, "total_yards"=>6274, "latitude"=>34.175205, "longitude"=>-118.87611, "full_name"=>"Los Robles Greens Golf Course", "name"=>"Los Robles Greens", "street_address_line_one"=>"299 South Moorpark Road", "street_address_line_two"=>nil, "city"=>"Thousand Oaks", "state"=>"CA", "postal_code"=>"91361", "phone_number"=>"(805) 495-6421", "description"=>"Designed by Bob E Baldock and opened in 1964, Los Robles Greens Golf Course is a par 70, 18 hole course located in Thousand Oaks. Stretching to 6274 yards with a slope of 131, golfers should have an awesome round of golf.", "website"=>"www.losroblesgreens.com", "bookable"=>true, "flyover_url"=>nil, "hd_flyover_url"=>nil, "facility_id"=>3565, "number_of_holes"=>[], "formatted_local_offset"=>"-07:00"}, "tee_times"=>[{"tee_time"=>{"id"=>209723397, "type"=>"DISC", "starts_at"=>"2014-03-26T07:36:00-07:00", "number_of_holes"=>[18], "number_of_players"=>[1, 2, 3, 4], "price"=>5600, "hot_deal"=>false, "discount"=>"0.0", "details"=>[{"present_in_icon_list"=>true, "name"=>"18 Hole Time", "description"=>"Normal Icon", "image_url"=>"https://s3.amazonaws.com/golfcenter-tee-time-icons/i_18.gif"}, {"present_in_icon_list"=>true, "name"=>"Cart Included", "description"=>"Normal Icon", "image_url"=>"https://s3.amazonaws.com/golfcenter-tee-time-icons/i_cart.gif"}], "policy"=>"", "information"=>"", "booking_expenses"=>{"green_fees"=>5600, "transaction_fee"=>249, "tax"=>0, "due_online"=>249, "number_of_players"=>1}}}], "location"=>{"lat"=>34.175205, "lon"=>-118.87611}}, "sort"=>[1395844560000]}, {"_index"=>"tee_times", "_type"=>"result", "_id"=>"fPNbOihfQmSW5CspWhFgpg", "_score"=>nil, "_source"=>{"golf_course"=>{"golf_center_id"=>7206, "par"=>69, "total_yards"=>6274, "latitude"=>34.175205, "longitude"=>-118.87611, "full_name"=>"Los Robles Greens Golf Course", "name"=>"Los Robles Greens", "street_address_line_one"=>"299 South Moorpark Road", "street_address_line_two"=>nil, "city"=>"Thousand Oaks", "state"=>"CA", "postal_code"=>"91361", "phone_number"=>"(805) 495-6421", "description"=>"Designed by Bob E Baldock and opened in 1964, Los Robles Greens Golf Course is a par 70, 18 hole course located in Thousand Oaks. Stretching to 6274 yards with a slope of 131, golfers should have an awesome round of golf.", "website"=>"www.losroblesgreens.com", "bookable"=>true, "flyover_url"=>nil, "hd_flyover_url"=>nil, "facility_id"=>3565, "number_of_holes"=>[], "formatted_local_offset"=>"-07:00"}, "tee_times"=>[{"tee_time"=>{"id"=>209723327, "type"=>"DISC", "starts_at"=>"2014-03-26T07:44:00-07:00", "number_of_holes"=>[18], "number_of_players"=>[1, 2, 3, 4], "price"=>5600, "hot_deal"=>false, "discount"=>"0.0", "details"=>[{"present_in_icon_list"=>true, "name"=>"18 Hole Time", "description"=>"Normal Icon", "image_url"=>"https://s3.amazonaws.com/golfcenter-tee-time-icons/i_18.gif"}, {"present_in_icon_list"=>true, "name"=>"Cart Included", "description"=>"Normal Icon", "image_url"=>"https://s3.amazonaws.com/golfcenter-tee-time-icons/i_cart.gif"}], "policy"=>"", "information"=>"", "booking_expenses"=>{"green_fees"=>5600, "transaction_fee"=>249, "tax"=>0, "due_online"=>249, "number_of_players"=>1}}}], "location"=>{"lat"=>34.175205, "lon"=>-118.87611}}, "sort"=>[1395845040000]}, {"_index"=>"tee_times", "_type"=>"result", "_id"=>"nK2g2ObtSzSeoAy9dd6G7g", "_score"=>nil, "_source"=>{"golf_course"=>{"golf_center_id"=>7206, "par"=>69, "total_yards"=>6274, "latitude"=>34.175205, "longitude"=>-118.87611, "full_name"=>"Los Robles Greens Golf Course", "name"=>"Los Robles Greens", "street_address_line_one"=>"299 South Moorpark Road", "street_address_line_two"=>nil, "city"=>"Thousand Oaks", "state"=>"CA", "postal_code"=>"91361", "phone_number"=>"(805) 495-6421", "description"=>"Designed by Bob E Baldock and opened in 1964, Los Robles Greens Golf Course is a par 70, 18 hole course located in Thousand Oaks. Stretching to 6274 yards with a slope of 131, golfers should have an awesome round of golf.", "website"=>"www.losroblesgreens.com", "bookable"=>true, "flyover_url"=>nil, "hd_flyover_url"=>nil, "facility_id"=>3565, "number_of_holes"=>[], "formatted_local_offset"=>"-07:00"}, "tee_times"=>[{"tee_time"=>{"id"=>209723328, "type"=>"DISC", "starts_at"=>"2014-03-26T07:52:00-07:00", "number_of_holes"=>[18], "number_of_players"=>[1, 2, 3, 4], "price"=>5600, "hot_deal"=>false, "discount"=>"0.0", "details"=>[{"present_in_icon_list"=>true, "name"=>"18 Hole Time", "description"=>"Normal Icon", "image_url"=>"https://s3.amazonaws.com/golfcenter-tee-time-icons/i_18.gif"}, {"present_in_icon_list"=>true, "name"=>"Cart Included", "description"=>"Normal Icon", "image_url"=>"https://s3.amazonaws.com/golfcenter-tee-time-icons/i_cart.gif"}], "policy"=>"", "information"=>"", "booking_expenses"=>{"green_fees"=>5600, "transaction_fee"=>249, "tax"=>0, "due_online"=>249, "number_of_players"=>1}}}], "location"=>{"lat"=>34.175205, "lon"=>-118.87611}}, "sort"=>[1395845520000]}, {"_index"=>"tee_times", "_type"=>"result", "_id"=>"CYlLopmzQBSCMHn-6yTFlA", "_score"=>nil, "_source"=>{"golf_course"=>{"golf_center_id"=>7206, "par"=>69, "total_yards"=>6274, "latitude"=>34.175205, "longitude"=>-118.87611, "full_name"=>"Los Robles Greens Golf Course", "name"=>"Los Robles Greens", "street_address_line_one"=>"299 South Moorpark Road", "street_address_line_two"=>nil, "city"=>"Thousand Oaks", "state"=>"CA", "postal_code"=>"91361", "phone_number"=>"(805) 495-6421", "description"=>"Designed by Bob E Baldock and opened in 1964, Los Robles Greens Golf Course is a par 70, 18 hole course located in Thousand Oaks. Stretching to 6274 yards with a slope of 131, golfers should have an awesome round of golf.", "website"=>"www.losroblesgreens.com", "bookable"=>true, "flyover_url"=>nil, "hd_flyover_url"=>nil, "facility_id"=>3565, "number_of_holes"=>[], "formatted_local_offset"=>"-07:00"}, "tee_times"=>[{"tee_time"=>{"id"=>209723329, "type"=>"DISC", "starts_at"=>"2014-03-26T08:00:00-07:00", "number_of_holes"=>[18], "number_of_players"=>[1, 2, 3, 4], "price"=>5600, "hot_deal"=>false, "discount"=>"0.0", "details"=>[{"present_in_icon_list"=>true, "name"=>"18 Hole Time", "description"=>"Normal Icon", "image_url"=>"https://s3.amazonaws.com/golfcenter-tee-time-icons/i_18.gif"}, {"present_in_icon_list"=>true, "name"=>"Cart Included", "description"=>"Normal Icon", "image_url"=>"https://s3.amazonaws.com/golfcenter-tee-time-icons/i_cart.gif"}], "policy"=>"", "information"=>"", "booking_expenses"=>{"green_fees"=>5600, "transaction_fee"=>249, "tax"=>0, "due_online"=>249, "number_of_players"=>1}}}], "location"=>{"lat"=>34.175205, "lon"=>-118.87611}}, "sort"=>[1395846000000]}, {"_index"=>"tee_times", "_type"=>"result", "_id"=>"2Daa0154TAC7ouqf-u8JEw", "_score"=>nil, "_source"=>{"golf_course"=>{"golf_center_id"=>7206, "par"=>69, "total_yards"=>6274, "latitude"=>34.175205, "longitude"=>-118.87611, "full_name"=>"Los Robles Greens Golf Course", "name"=>"Los Robles Greens", "street_address_line_one"=>"299 South Moorpark Road", "street_address_line_two"=>nil, "city"=>"Thousand Oaks", "state"=>"CA", "postal_code"=>"91361", "phone_number"=>"(805) 495-6421", "description"=>"Designed by Bob E Baldock and opened in 1964, Los Robles Greens Golf Course is a par 70, 18 hole course located in Thousand Oaks. Stretching to 6274 yards with a slope of 131, golfers should have an awesome round of golf.", "website"=>"www.losroblesgreens.com", "bookable"=>true, "flyover_url"=>nil, "hd_flyover_url"=>nil, "facility_id"=>3565, "number_of_holes"=>[], "formatted_local_offset"=>"-07:00"}, "tee_times"=>[{"tee_time"=>{"id"=>209723396, "type"=>"DISC", "starts_at"=>"2014-03-26T08:08:00-07:00", "number_of_holes"=>[18], "number_of_players"=>[1, 2, 3, 4], "price"=>5600, "hot_deal"=>false, "discount"=>"0.0", "details"=>[{"present_in_icon_list"=>true, "name"=>"18 Hole Time", "description"=>"Normal Icon", "image_url"=>"https://s3.amazonaws.com/golfcenter-tee-time-icons/i_18.gif"}, {"present_in_icon_list"=>true, "name"=>"Cart Included", "description"=>"Normal Icon", "image_url"=>"https://s3.amazonaws.com/golfcenter-tee-time-icons/i_cart.gif"}], "policy"=>"", "information"=>"", "booking_expenses"=>{"green_fees"=>5600, "transaction_fee"=>249, "tax"=>0, "due_online"=>249, "number_of_players"=>1}}}], "location"=>{"lat"=>34.175205, "lon"=>-118.87611}}, "sort"=>[1395846480000]}]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment