Class: Gonebusy::HttpCallBack

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

Instance Method Summary collapse

Instance Method Details

#on_after_response(http_context) ⇒ Object

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

Parameters:

Raises:

  • (NotImplementedError)


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

def on_after_response(http_context)
  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/gonebusy/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