Method: TinyClient::Response#parse_body
- Defined in:
- lib/tiny_client/response.rb
#parse_body ⇒ Object
Convert the response json body into an hash.
19 20 21 22 |
# File 'lib/tiny_client/response.rb', line 19 def parse_body body = gzip? ? gzip_decompress : body_str ActiveSupport::JSON.decode(body) if body.present? end |