开发者

I'm calling a services API, and it returns a response object, how can I inspect all its properties etc?

开发者 https://www.devze.com 2023-01-24 16:56 出处:网络
I\'m calling a services API, and it returns a response object, how can I inspect all its properties etc?

I'm calling a services API, and it returns a response object, how can I inspect all its properties etc?

I don't know the exact nature of the response object, and there is little documentation on it.

response = .....

In irb, I just do a puts response, wi开发者_如何转开发ll this display all the properties or they can still be hidden?


Try response.inspect

0

精彩评论

暂无评论...
验证码 换一张
取 消