Get specific document ttl from cluster web console or rest api

Isn’t there a way to fetch it without keeping a view for it?
If there isn’t a way and the only way without a view is programmatically, how can you do it in ruby SDK?