lib/ambassadr/services/transport.rb
# Executes the request that has been built inside the instantiated object.
#
# @note This method will actually execute the request, subsequent calls to
#   the #response method, will not execute another HTTP request, but will
#   only return the same object.
#
# @raise [{Errors::HttpError}] if the HTTP response status code is not 2xx.
#
# @return [{Response}] a well-formed Hashie response object, returned from
#   the micro-service.
Executes the request that has been built inside the instantiated object.
Executes the request that has been built inside the instantiated object .
def response
        unless @response
          @response = handler request
        else
          @response
        end
      end
def response unless @response @response = handler request else @response end end
Executes the request that has been built inside the instantiated object.
Executes the request that has been built inside the instantiated object .
a well-formed Hashie response object, returned from the micro-service.
a well - formed Hashie response object returned from the micro - service .
{Response}
[{Errors::HttpError}] if the HTTP response status code is not 2xx.
[ { Errors :: HttpError } ] if the HTTP response status code is not 2xx .
note
This method will actually execute the request, subsequent calls to the #response method, will not execute another HTTP request, but will only return the same object.
This method will actually execute the request subsequent calls to the #response method will not execute another HTTP request but will only return the same object .