Module: XodClient::ParseUtil
- Included in:
- EndpointCall, TokenRefresher
- Defined in:
- lib/xod_client/concerns/parse_util.rb
Instance Method Summary collapse
Instance Method Details
#parse_xod_response(response) ⇒ Object
4 5 6 7 8 |
# File 'lib/xod_client/concerns/parse_util.rb', line 4 def parse_xod_response(response) json = JSON.parse(response.body).deep_transform_keys! { |key| key.underscore.to_sym } raise ResponseError, json[:exception_message] if json[:exception_message] json end |