lib/apia/endpoint.rb
# Allow an endpoint to be executed with a mocked request.
#
Allow an endpoint to be executed with a mocked request.
Allow an endpoint to be executed with a mocked request .
def test
        request = Apia::MockRequest.empty
        request.endpoint = self
        yield request if block_given?
        execute(request)
      end
def test request = Apia :: MockRequest . empty request . endpoint = self yield request if block_given? execute ( request ) end
Allow an endpoint to be executed with a mocked request.
Allow an endpoint to be executed with a mocked request .