[ create a new paste ] login | about

Link: http://codepad.org/2JpX9ei5    [ raw code | output | fork ]

Ruby, pasted on Sep 25:
1
2
3
4
5
6
7
8
clients = {
  "yellow"=>{"client_id"=>"2178"}, 
  "orange"=>{"client_id"=>"2180"}, 
  "red"=>{"client_id"=>"2179"}, 
  "blue"=>{"client_id"=>"2181"}
}

p clients.index({"client_id" => "2180"})


Output:
1
"orange"


Create a new paste based on this one


Comments: