Class: Nexmo::BearerToken

Inherits:
AbstractAuthentication show all
Defined in:
lib/nexmo/authentication/bearer_token.rb

Instance Method Summary collapse

Methods inherited from AbstractAuthentication

#initialize

Constructor Details

This class inherits a constructor from Nexmo::AbstractAuthentication

Instance Method Details

#update(object) ⇒ Object



5
6
7
8
9
# File 'lib/nexmo/authentication/bearer_token.rb', line 5

def update(object)
  return unless object.is_a?(Net::HTTPRequest)

  object['Authorization'] = 'Bearer ' + @client.token
end