Class: Mashape::MashapeAuthentication
- Inherits:
-
HeaderAuthentication
- Object
- Authentication
- HeaderAuthentication
- Mashape::MashapeAuthentication
- Defined in:
- lib/authentication/mashape_authentication.rb
Instance Method Summary collapse
-
#initialize(mashape_key) ⇒ MashapeAuthentication
constructor
A new instance of MashapeAuthentication.
Methods inherited from Authentication
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 |