Class: Mashape::MashapeAuthentication

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

Instance Method Summary collapse

Methods inherited from Authentication

#handleHeader, #handleParams

Constructor Details

#initialize(mashape_key) ⇒ MashapeAuthentication

Returns a new instance of MashapeAuthentication.



7
8
9
10
# File 'lib/authentication/mashape_authentication.rb', line 7

def initialize(mashape_key)
  super()
  @header = @header.merge(Mashape::AuthenticationUtils.generateMashapeAuthHeader(mashape_key))
end