guilhermesad / rspotify

A ruby wrapper for the Spotify Web API
MIT License
717 stars 290 forks source link

Store json response in Base #226

Closed lukel97 closed 1 year ago

lukel97 commented 3 years ago

This allows the JSON response returned from spotify to be accessed across all objects by storing it in the Base object. This was useful for our use case where we needed to get access to the underlying json blob, but still wanted to still be able to use the handy underlying rspotify methods. RSpotify.raw_response = true only returns the hashes. Not sure how this affects memory performance etc.