[ create a new paste ] login | about

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

Ruby, pasted on May 15:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
obj = {"stock"=>1,
     "voice_enabled"=>true,
     "region"=>"New York, UNITED STATES",
     "voice_rate"=>"0.00900",
     "prefix"=>"212",
     "sms_rate"=>"0.00800",
     "number_type"=>"local",
     "setup_rate"=>"0.00000",
     "rental_rate"=>"0.80000",
     "group_id"=>"29753262281573",
     "sms_enabled"=>true,
     "resource_uri"=>
      "/v1/Account/MAZDQ1ZJIYMDZKMMZKYM/AvailableNumberGroup/29753262281573/"}

puts obj['region']
puts obj['prefix']


Output:
1
2
New York, UNITED STATES
212


Create a new paste based on this one


Comments: