class Slack::Web::Faraday::Response::RaiseError

Public Instance Methods

on_complete(env) click to toggle source
# File lib/slack/web/faraday/response/raise_error.rb, line 6
def on_complete(env)
  body = env.body
  return if body['ok']
  fail Slack::Web::Api::Error.new(body['error'], env.response)
end