Actually, the  (which is passed to callback) - is not a hash, but it is object. So, I have changed the code, for getting fields from  in correct way