Class: Mashape::CustomHeaderAuthentication
- Inherits:
-
HeaderAuthentication
- Object
- Authentication
- HeaderAuthentication
- Mashape::CustomHeaderAuthentication
- Defined in:
- lib/authentication/custom_header_authentication.rb
Instance Method Summary collapse
-
#initialize(header_name, header_value) ⇒ CustomHeaderAuthentication
constructor
A new instance of CustomHeaderAuthentication.
Methods inherited from Authentication
Constructor Details
#initialize(header_name, header_value) ⇒ CustomHeaderAuthentication
Returns a new instance of CustomHeaderAuthentication.
6 7 8 9 |
# File 'lib/authentication/custom_header_authentication.rb', line 6 def initialize(header_name, header_value) super() @header[header_name] = header_value end |