Class: Keycloak::Token
- Inherits:
-
Object
- Object
- Keycloak::Token
- Defined in:
- lib/keycloak/token.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#expires_in ⇒ Object
Returns the value of attribute expires_in.
-
#not_before_policy ⇒ Object
Returns the value of attribute not_before_policy.
-
#refresh_expires_in ⇒ Object
Returns the value of attribute refresh_expires_in.
-
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#session_state ⇒ Object
Returns the value of attribute session_state.
-
#token_type ⇒ Object
Returns the value of attribute token_type.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Token
constructor
A new instance of Token.
Constructor Details
#initialize(options = {}) ⇒ Token
Returns a new instance of Token.
5 6 7 8 9 |
# File 'lib/keycloak/token.rb', line 5 def initialize( = {}) .each do |k, v| self.send("#{k}=", v) end end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
3 4 5 |
# File 'lib/keycloak/token.rb', line 3 def access_token @access_token end |
#expires_in ⇒ Object
Returns the value of attribute expires_in.
3 4 5 |
# File 'lib/keycloak/token.rb', line 3 def expires_in @expires_in end |
#not_before_policy ⇒ Object
Returns the value of attribute not_before_policy.
3 4 5 |
# File 'lib/keycloak/token.rb', line 3 def not_before_policy @not_before_policy end |
#refresh_expires_in ⇒ Object
Returns the value of attribute refresh_expires_in.
3 4 5 |
# File 'lib/keycloak/token.rb', line 3 def refresh_expires_in @refresh_expires_in end |
#refresh_token ⇒ Object
Returns the value of attribute refresh_token.
3 4 5 |
# File 'lib/keycloak/token.rb', line 3 def refresh_token @refresh_token end |
#scope ⇒ Object
Returns the value of attribute scope.
3 4 5 |
# File 'lib/keycloak/token.rb', line 3 def scope @scope end |
#session_state ⇒ Object
Returns the value of attribute session_state.
3 4 5 |
# File 'lib/keycloak/token.rb', line 3 def session_state @session_state end |
#token_type ⇒ Object
Returns the value of attribute token_type.
3 4 5 |
# File 'lib/keycloak/token.rb', line 3 def token_type @token_type end |