Class: Mashape::CustomHeaderAuthentication

Inherits:
HeaderAuthentication show all
Defined in:
lib/authentication/custom_header_authentication.rb

Instance Method Summary collapse

Methods inherited from Authentication

#handleHeader, #handleParams

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