Class: Ribose::Response::RaiseError

Inherits:
Faraday::Response::Middleware
  • Object
show all
Defined in:
lib/ribose/response/raise_error.rb

Instance Method Summary collapse

Instance Method Details

#on_complete(response) ⇒ Object



6
7
8
9
10
# File 'lib/ribose/response/raise_error.rb', line 6

def on_complete(response)
  if error = Ribose::Error.from_response(response)
    raise error
  end
end