Method: ConvertLoop::Client#parse_json_response
- Defined in:
- lib/convertloop/client.rb
#parse_json_response(response) ⇒ Object
56 57 58 59 60 61 62 63 |
# File 'lib/convertloop/client.rb', line 56 def parse_json_response(response) case response when Net::HTTPSuccess JSON.parse(response.body) else response.error! end end |