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 collapse
-
#attributes ⇒ Hash
readonly
Access the token details Hash object ruby'fied to use symbolized keys.
Attributes included from Ably::Modules::ModelCommon
Instance Method Summary collapse
-
#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.
25 26 27 28 |
# File 'lib/submodules/ably-ruby/lib/ably/models/auth_details.rb', line 25 def initialize(attributes = {}) @hash_object = IdiomaticRubyWrapper(attributes.clone) self.attributes.freeze end |
Instance Attribute Details
#attributes ⇒ Hash (readonly)
Returns Access the token details Hash object ruby'fied to use symbolized keys.
38 39 40 |
# File 'lib/submodules/ably-ruby/lib/ably/models/auth_details.rb', line 38 def attributes @hash_object end |