Class: Minato::Utils::ResponseHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/minato/utils/response_handler.rb

Class Method Summary collapse

Class Method Details

.handle(response) ⇒ Object



10
11
12
13
# File 'lib/minato/utils/response_handler.rb', line 10

def handle(response)
  raise_exception(response) if response_error?(response)
  Response.new(response)
end