Class: Ably::Models::AuthDetails
- Inherits:
-
Object
- Object
- Ably::Models::AuthDetails
- Includes:
- Ably::Modules::ModelCommon
- Defined in:
- lib/submodules/ably-ruby/lib/ably/models/auth_details.rb
Overview
AuthDetails are included in an AUTH
ProtocolMessage#auth attribute to provide the realtime service with new token authentication details following a re-auth workflow
Instance Attribute Summary
Attributes included from Ably::Modules::ModelCommon
Instance Method Summary collapse
-
#access_token ⇒ String
The authentication token string.
- #attributes ⇒ Object
-
#initialize(attributes = {}) ⇒ AuthDetails
constructor
A new instance of AuthDetails.
Methods included from Ably::Modules::ModelCommon
#==, #[], #as_json, included, #to_json, #to_s
Methods included from Ably::Modules::MessagePack
Constructor Details
#initialize(attributes = {}) ⇒ AuthDetails
Returns a new instance of AuthDetails.
26 27 28 29 |
# 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 |
Instance Method Details
#access_token ⇒ String
The authentication token string.
37 38 39 |
# File 'lib/submodules/ably-ruby/lib/ably/models/auth_details.rb', line 37 def access_token attributes[:access_token] end |
#attributes ⇒ Object
41 42 43 |
# File 'lib/submodules/ably-ruby/lib/ably/models/auth_details.rb', line 41 def attributes @hash_object end |