Class: Nexmo::BearerToken
- Inherits:
-
AbstractAuthentication
- Object
- AbstractAuthentication
- Nexmo::BearerToken
- Defined in:
- lib/nexmo/authentication/bearer_token.rb
Instance Method Summary collapse
Methods inherited from AbstractAuthentication
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 |