Class: WOWSQL::AuthSession
- Inherits:
-
Struct
- Object
- Struct
- WOWSQL::AuthSession
- Defined in:
- lib/wowsql/auth.rb
Overview
Session tokens returned by the auth service.
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#expires_in ⇒ Object
Returns the value of attribute expires_in.
-
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
-
#token_type ⇒ Object
Returns the value of attribute token_type.
Instance Method Summary collapse
-
#initialize(access_token: '', refresh_token: '', token_type: 'bearer', expires_in: 0) ⇒ AuthSession
constructor
A new instance of AuthSession.
Constructor Details
#initialize(access_token: '', refresh_token: '', token_type: 'bearer', expires_in: 0) ⇒ AuthSession
Returns a new instance of AuthSession.
24 25 26 |
# File 'lib/wowsql/auth.rb', line 24 def initialize(access_token: '', refresh_token: '', token_type: 'bearer', expires_in: 0) super end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token
20 21 22 |
# File 'lib/wowsql/auth.rb', line 20 def access_token @access_token end |
#expires_in ⇒ Object
Returns the value of attribute expires_in
20 21 22 |
# File 'lib/wowsql/auth.rb', line 20 def expires_in @expires_in end |
#refresh_token ⇒ Object
Returns the value of attribute refresh_token
20 21 22 |
# File 'lib/wowsql/auth.rb', line 20 def refresh_token @refresh_token end |
#token_type ⇒ Object
Returns the value of attribute token_type
20 21 22 |
# File 'lib/wowsql/auth.rb', line 20 def token_type @token_type end |