标签: ruby-on-rails
我正在调用服务API,它返回一个响应对象,如何检查其所有属性等?
我不知道响应对象的确切性质,并且几乎没有文档。
response = .....
在irb中,我只是做puts response,这会显示所有属性还是仍然可以隐藏?
puts response
答案 0 :(得分:1)
尝试response.inspect
response.inspect