Sha256: 773bda642720c346d1db2b2ad625a88d43b22aac37868664bb18752dd3958b88
Contents?: true
Size: 345 Bytes
Versions: 20
Compression:
Stored size: 345 Bytes
Contents
module Slack module Web module Faraday module Response class RaiseError < ::Faraday::Response::Middleware def on_complete(env) body = env.body return if body['ok'] fail Slack::Web::Api::Error.new(body['error'], env.response) end end end end end end
Version data entries
20 entries across 20 versions & 2 rubygems