Class: OneLogin::Api::Models::OTPDevice
- Inherits:
-
Object
- Object
- OneLogin::Api::Models::OTPDevice
- Defined in:
- lib/onelogin/api/models/otp_device.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#auth_factor_name ⇒ Object
Returns the value of attribute auth_factor_name.
-
#default ⇒ Object
Returns the value of attribute default.
-
#id ⇒ Object
Returns the value of attribute id.
-
#needs_trigger ⇒ Object
Returns the value of attribute needs_trigger.
-
#phone_number ⇒ Object
Returns the value of attribute phone_number.
-
#state_token ⇒ Object
Returns the value of attribute state_token.
-
#type_display_name ⇒ Object
Returns the value of attribute type_display_name.
-
#user_display_name ⇒ Object
Returns the value of attribute user_display_name.
Instance Method Summary collapse
-
#initialize(data) ⇒ OTPDevice
constructor
A new instance of OTPDevice.
Constructor Details
#initialize(data) ⇒ OTPDevice
Returns a new instance of OTPDevice.
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/onelogin/api/models/otp_device.rb', line 11 def initialize(data) @id = data['id']? data['id'].to_i : nil @active = data['active'] @default = data['default'] @auth_factor_name = data['auth_factor_name'] @phone_number = data['phone_number'] @type_display_name = data['type_display_name'] @needs_trigger = data['needs_trigger'] @user_display_name = data['user_display_name'] @state_token = data['state_token'] end |
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active.
7 8 9 |
# File 'lib/onelogin/api/models/otp_device.rb', line 7 def active @active end |
#auth_factor_name ⇒ Object
Returns the value of attribute auth_factor_name.
7 8 9 |
# File 'lib/onelogin/api/models/otp_device.rb', line 7 def auth_factor_name @auth_factor_name end |
#default ⇒ Object
Returns the value of attribute default.
7 8 9 |
# File 'lib/onelogin/api/models/otp_device.rb', line 7 def default @default end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/onelogin/api/models/otp_device.rb', line 7 def id @id end |
#needs_trigger ⇒ Object
Returns the value of attribute needs_trigger.
7 8 9 |
# File 'lib/onelogin/api/models/otp_device.rb', line 7 def needs_trigger @needs_trigger end |
#phone_number ⇒ Object
Returns the value of attribute phone_number.
7 8 9 |
# File 'lib/onelogin/api/models/otp_device.rb', line 7 def phone_number @phone_number end |
#state_token ⇒ Object
Returns the value of attribute state_token.
7 8 9 |
# File 'lib/onelogin/api/models/otp_device.rb', line 7 def state_token @state_token end |
#type_display_name ⇒ Object
Returns the value of attribute type_display_name.
7 8 9 |
# File 'lib/onelogin/api/models/otp_device.rb', line 7 def type_display_name @type_display_name end |
#user_display_name ⇒ Object
Returns the value of attribute user_display_name.
7 8 9 |
# File 'lib/onelogin/api/models/otp_device.rb', line 7 def user_display_name @user_display_name end |