Class: Discogs::Api::Response
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Discogs::Api::Response
- Defined in:
- lib/discogs/api/response.rb
Overview
Simple wrapper around a HTTP::Response to easily parse JSON
Instance Method Summary collapse
Instance Method Details
#to_h ⇒ Object
3 4 5 |
# File 'lib/discogs/api/response.rb', line 3 def to_h JSON.parse(to_s, symbolize_names: true) end |