Class: OneLogin::Api::Models::SessionTokenInfo
- Inherits:
-
Object
- Object
- OneLogin::Api::Models::SessionTokenInfo
- Defined in:
- lib/onelogin/api/models/session_token_info.rb
Instance Attribute Summary collapse
-
#expires_at ⇒ Object
Returns the value of attribute expires_at.
-
#return_to_url ⇒ Object
Returns the value of attribute return_to_url.
-
#session_token ⇒ Object
Returns the value of attribute session_token.
-
#status ⇒ Object
Returns the value of attribute status.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(data) ⇒ SessionTokenInfo
constructor
A new instance of SessionTokenInfo.
Constructor Details
#initialize(data) ⇒ SessionTokenInfo
Returns a new instance of SessionTokenInfo.
9 10 11 12 13 14 15 16 17 |
# File 'lib/onelogin/api/models/session_token_info.rb', line 9 def initialize(data) @status = data['status'].to_s unless data['user'].empty? @user = OneLogin::Api::Models::User.new(data['user']) # Partial info end @return_to_url = data['return_to_url'].to_s @expires_at = Time.parse(data['expires_at']) @session_token = data['session_token'].to_s end |
Instance Attribute Details
#expires_at ⇒ Object
Returns the value of attribute expires_at.
7 8 9 |
# File 'lib/onelogin/api/models/session_token_info.rb', line 7 def expires_at @expires_at end |
#return_to_url ⇒ Object
Returns the value of attribute return_to_url.
7 8 9 |
# File 'lib/onelogin/api/models/session_token_info.rb', line 7 def return_to_url @return_to_url end |
#session_token ⇒ Object
Returns the value of attribute session_token.
7 8 9 |
# File 'lib/onelogin/api/models/session_token_info.rb', line 7 def session_token @session_token end |
#status ⇒ Object
Returns the value of attribute status.
7 8 9 |
# File 'lib/onelogin/api/models/session_token_info.rb', line 7 def status @status end |
#user ⇒ Object
Returns the value of attribute user.
7 8 9 |
# File 'lib/onelogin/api/models/session_token_info.rb', line 7 def user @user end |