I think you might need a method .inspect.
= val.inspect
This will show you something like:
Of course, if you want to dive into specifics (for example, you want to show someone an attribute url(or any other attribute that you have), then use this method:
= val.url
What will be shown:
the url
source
share