Class: Chargify::Parser
- Inherits:
-
HTTParty::Parser
- Object
- HTTParty::Parser
- Chargify::Parser
- Defined in:
- lib/chargify/client.rb
Instance Method Summary collapse
Instance Method Details
#parse ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/chargify/client.rb', line 6 def parse begin Crack::JSON.parse(body) rescue => e raise UnexpectedResponseError, "Crack could not parse JSON. It said: #{e.}. Chargify's raw response: #{body}" end end |