Skip to content

Instantly share code, notes, and snippets.

@StephenOTT
Created August 22, 2013 04:39
Show Gist options
  • Save StephenOTT/6303277 to your computer and use it in GitHub Desktop.
Save StephenOTT/6303277 to your computer and use it in GitHub Desktop.
Health Inspection Parsed XML into Ruby Hash/Arrays - Single Restaurant
[{"numFound"=>"1",
"start"=>"0",
"doc"=>
[{"str"=>
{"app_id"=>"fsi",
"fs_fa_en"=>"Ottawa West",
"fs_fa_fr"=>"Ottawa Ouest",
"fs_facd"=>"OTW",
"fs_faid"=>"9DC7C571-6145-47B1-B837-85E1F6A26244",
"fs_fcr"=>"YES",
"fs_fcr_date"=>"2013-04-17 00:00:00.000",
"fs_fdid"=>"7FF5646A-9116-4765-85BE-F032459E9332",
"fs_fefd"=>"2013-05-09 00:00:00.000",
"fs_fmid"=>"AC3D9A20-A469-4714-A65E-1AF3DFEC537F",
"fs_fnm"=>" NESTLE TOLL HOUSE CAFE",
"fs_fsc"=>"OTTAWA",
"fs_fsd"=>nil,
"fs_fsf"=>"3350",
"fs_fsp_en"=>"Ontario",
"fs_fsp_fr"=>"Ontario",
"fs_fspc"=>"K2J 5L1",
"fs_fspcd"=>"ON",
"fs_fsph"=>"717-0072",
"fs_fspid"=>"B7523499-A237-11D3-BAB1-005004AE1145",
"fs_fss"=>"FALLOWFIELD ROAD",
"fs_fst"=>nil,
"fs_fstcd"=>nil,
"fs_fstic"=>"F",
"fs_fstid"=>"ABD32301-9615-4094-9D98-14B21360A7F8",
"fs_fstlu"=>"2008-12-19 11:44:42.487",
"fs_fsun"=>nil,
"fs_ft_en"=>"Restaurant",
"fs_ft_fr"=>"Restaurant",
"fs_ftcd"=>"FGRE",
"fs_ftcd_en"=>"FGRE###Restaurant",
"fs_ftcd_fr"=>"FGRE###Restaurant",
"fs_ftid"=>"8D440A2A-DEB7-4DAC-9A48-74D57E0AC6AE",
"fs_fw_en"=>"Barrhaven",
"fs_fw_fr"=>"Barrhaven",
"fs_fwcd"=>"OTWBA",
"fs_fwcd_en"=>"OTWBA###Barrhaven",
"fs_fwcd_fr"=>"OTWBA###Barrhaven",
"fs_fwid"=>"8A6017EB-4B98-475F-8054-7C60B879C0C2",
"fs_insp_sort"=>"0",
"id"=>"fsi0"},
"arr"=>
{"fs_insp_en"=>
{"inspection"=>
[{"inspectionid"=>"6CF6DD61-7EFE-4F14-9F76-BE626774A152",
"facilitydetailid"=>"52FD36B1-B232-4D14-953E-03CED9006C2F",
"inspectiondate"=>"2013-04-17 00:00:00.000",
"isincompliance"=>"1",
"closuredate"=>"2013-04-17 15:08:17.000",
"reportnumber"=>"1"}]},
"fs_insp_fr"=>
{"inspection"=>
[{"inspectionid"=>"6CF6DD61-7EFE-4F14-9F76-BE626774A152",
"facilitydetailid"=>"52FD36B1-B232-4D14-953E-03CED9006C2F",
"inspectiondate"=>"2013-04-17 00:00:00.000",
"isincompliance"=>"1",
"closuredate"=>"2013-04-17 15:08:17.000",
"reportnumber"=>"1"}]}}}],
"urls"=>
[{"query"=>
["q.pl?ss=details%5Fen&cookie=t&sq_fs_fdid=7FF5646A%2D9116%2D4765%2D85BE%2DF032459E9332"],
"langtoggle"=>
["q.pl?ss=details%5Ffr&cookie=t&sq_fs_fdid=7FF5646A%2D9116%2D4765%2D85BE%2DF032459E9332"],
"back"=>[{}]}]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment