Blankman
Blankman

Reputation: 267230

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, will this display all the properties or they can still be hidden?

Upvotes: 0

Views: 60

Answers (1)

edgerunner
edgerunner

Reputation: 14973

Try response.inspect

Upvotes: 1

Related Questions