class Google::Auth::IAMCredentials
Authenticates requests using IAM credentials.
def apply(a_hash)
def apply(a_hash) a_copy = a_hash.clone apply!(a_copy) a_copy end
def apply!(a_hash)
def apply!(a_hash) a_hash[SELECTOR_KEY] = @selector a_hash[TOKEN_KEY] = @token a_hash end
def initialize(selector, token)
-
token() -- the IAM token. -
selector() -- the IAM selector.
def initialize(selector, token) raise TypeError unless selector.is_a? String raise TypeError unless token.is_a? String @selector = selector @token = token end
def updater_proc
Returns a reference to the #apply method, suitable for passing as
def updater_proc lambda(&method(:apply)) end