Class: MoesifApi::HttpCallBack

Inherits:
Object
  • Object
show all
Defined in:
lib/moesif_api/http/http_call_back.rb

Instance Method Summary collapse

Instance Method Details

#on_after_response(http_response) ⇒ Object

A controller will call this method after making an HTTP Request.

Parameters:

  • The (HttpResponse)

    HttpResponse object received from the HttpClient.

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/moesif_api/http/http_call_back.rb', line 13

def on_after_response(http_response)
  raise NotImplementedError, "This method needs to be implemented in a child class."
end

#on_before_request(http_request) ⇒ Object

A controller will call this method before making an HTTP Request.

Parameters:

  • The (HttpRequest)

    HttpRequest object which the HttpClient will execute.

Raises:

  • (NotImplementedError)


7
8
9
# File 'lib/moesif_api/http/http_call_back.rb', line 7

def on_before_request(http_request)
  raise NotImplementedError, "This method needs to be implemented in a child class."
end