class Ably::Models::AuthDetails
AuthDetails
are included in an AUTH
{Ably::Models::ProtocolMessage#auth} attribute to provide the realtime service with new token authentication details following a re-auth workflow
Public Class Methods
new(attributes = {})
click to toggle source
@param attributes [Hash] @option attributes [String] :access_token token string
# File lib/submodules/ably-ruby/lib/ably/models/auth_details.rb, line 26 def initialize(attributes = {}) @hash_object = IdiomaticRubyWrapper(attributes.clone) self.attributes.freeze end
Public Instance Methods
access_token()
click to toggle source
The authentication token string.
@spec AD2
@return [String]
# File lib/submodules/ably-ruby/lib/ably/models/auth_details.rb, line 37 def access_token attributes[:access_token] end
attributes()
click to toggle source
# File lib/submodules/ably-ruby/lib/ably/models/auth_details.rb, line 41 def attributes @hash_object end