Class: ApimaticCalculator::HttpCallBack
- Inherits:
-
Object
- Object
- ApimaticCalculator::HttpCallBack
- Defined in:
- lib/apimatic_calculator/http/http_call_back.rb
Overview
HttpCallBack allows defining callables for pre and post API calls.
Instance Method Summary collapse
-
#on_after_response(_http_response) ⇒ Object
A controller will call this method after making an HTTP Request.
-
#on_before_request(_http_request) ⇒ Object
A controller will call this method before making an HTTP Request.
Instance Method Details
#on_after_response(_http_response) ⇒ Object
A controller will call this method after making an HTTP Request.
19 20 21 22 |
# File 'lib/apimatic_calculator/http/http_call_back.rb', line 19 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. will execute.
12 13 14 15 |
# File 'lib/apimatic_calculator/http/http_call_back.rb', line 12 def on_before_request(_http_request) raise NotImplementedError, 'This method needs to be implemented in a child class.' end |