Class: OneLogin::Api::Models::SessionTokenMFAInfo
- Inherits:
-
Object
- Object
- OneLogin::Api::Models::SessionTokenMFAInfo
- Defined in:
- lib/onelogin/api/models/session_token_mfa_info.rb
Instance Attribute Summary collapse
-
#callback_url ⇒ Object
Returns the value of attribute callback_url.
-
#devices ⇒ Object
Returns the value of attribute devices.
-
#state_token ⇒ Object
Returns the value of attribute state_token.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(data) ⇒ SessionTokenMFAInfo
constructor
A new instance of SessionTokenMFAInfo.
Constructor Details
#initialize(data) ⇒ SessionTokenMFAInfo
Returns a new instance of SessionTokenMFAInfo.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/onelogin/api/models/session_token_mfa_info.rb', line 9 def initialize(data) unless data['user'].empty? @user = OneLogin::Api::Models::User.new(data['user']) # Partial info end @state_token = data['state_token'].to_s @callback_url = data['callback_url'].to_s @devices = [] unless data['devices'].empty? data['devices'].each do |device_data| @devices << OneLogin::Api::Models::Device.new(device_data) end end end |
Instance Attribute Details
#callback_url ⇒ Object
Returns the value of attribute callback_url.
7 8 9 |
# File 'lib/onelogin/api/models/session_token_mfa_info.rb', line 7 def callback_url @callback_url end |
#devices ⇒ Object
Returns the value of attribute devices.
7 8 9 |
# File 'lib/onelogin/api/models/session_token_mfa_info.rb', line 7 def devices @devices end |
#state_token ⇒ Object
Returns the value of attribute state_token.
7 8 9 |
# File 'lib/onelogin/api/models/session_token_mfa_info.rb', line 7 def state_token @state_token end |
#user ⇒ Object
Returns the value of attribute user.
7 8 9 |
# File 'lib/onelogin/api/models/session_token_mfa_info.rb', line 7 def user @user end |