Class: BRL::Auth::Token
- Inherits:
-
Object
- Object
- BRL::Auth::Token
- Defined in:
- lib/brl/auth/token.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
readonly
Returns the value of attribute access_token.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#expires_in ⇒ Object
readonly
Returns the value of attribute expires_in.
-
#refresh_token ⇒ Object
readonly
Returns the value of attribute refresh_token.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
-
#token_type ⇒ Object
readonly
Returns the value of attribute token_type.
Instance Method Summary collapse
-
#initialize(access_token: nil, created_at: Time.now.zone, expires_in: nil, refresh_token: nil, scope: nil, token_type: nil) ⇒ Token
constructor
A new instance of Token.
Constructor Details
#initialize(access_token: nil, created_at: Time.now.zone, expires_in: nil, refresh_token: nil, scope: nil, token_type: nil) ⇒ Token
Returns a new instance of Token.
8 9 10 11 12 13 14 15 |
# File 'lib/brl/auth/token.rb', line 8 def initialize(access_token: nil, created_at: Time.now.zone, expires_in: nil, refresh_token: nil, scope: nil, token_type: nil) @access_token = access_token @created_at = created_at @expires_in = expires_in @refresh_token = refresh_token @scope = scope @token_type = token_type end |
Instance Attribute Details
#access_token ⇒ Object (readonly)
Returns the value of attribute access_token.
6 7 8 |
# File 'lib/brl/auth/token.rb', line 6 def access_token @access_token end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
6 7 8 |
# File 'lib/brl/auth/token.rb', line 6 def created_at @created_at end |
#expires_in ⇒ Object (readonly)
Returns the value of attribute expires_in.
6 7 8 |
# File 'lib/brl/auth/token.rb', line 6 def expires_in @expires_in end |
#refresh_token ⇒ Object (readonly)
Returns the value of attribute refresh_token.
6 7 8 |
# File 'lib/brl/auth/token.rb', line 6 def refresh_token @refresh_token end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
6 7 8 |
# File 'lib/brl/auth/token.rb', line 6 def scope @scope end |
#token_type ⇒ Object (readonly)
Returns the value of attribute token_type.
6 7 8 |
# File 'lib/brl/auth/token.rb', line 6 def token_type @token_type end |