Class: CoreLibrary::Authentication
- Inherits:
-
Object
- Object
- CoreLibrary::Authentication
- Defined in:
- lib/apimatic-core-interfaces/types/authentication.rb
Overview
An interface for authenticating the HTTP requests. This class should not be instantiated but should be used as a base class for authenticating the request.
Instance Method Summary collapse
-
#apply(_http_request) ⇒ Object
Applies the authentication scheme on the given HTTP request.
-
#valid ⇒ Boolean
Checks whether this authentication scheme is valid or not.
Instance Method Details
#apply(_http_request) ⇒ Object
Applies the authentication scheme on the given HTTP request.
15 16 17 18 |
# File 'lib/apimatic-core-interfaces/types/authentication.rb', line 15 def apply(_http_request) raise NotImplementedError, 'This method needs to be implemented in a child class.' end |
#valid ⇒ Boolean
Checks whether this authentication scheme is valid or not.
8 9 10 11 |
# File 'lib/apimatic-core-interfaces/types/authentication.rb', line 8 def valid raise NotImplementedError, 'This method needs to be implemented in a child class.' end |