Method: Google::Auth::ServiceAccountJwtHeaderCredentials#apply

Defined in:
lib/googleauth/service_account_jwt_header.rb

#apply(a_hash, opts = {}) ⇒ Object

Returns a clone of a_hash updated with the authorization header

[View source]

122
123
124
125
126
# File 'lib/googleauth/service_account_jwt_header.rb', line 122

def apply a_hash, opts = {}
  a_copy = a_hash.clone
  apply! a_copy, opts
  a_copy
end