Class: OneLogin::Api::Models::OTPDevice

Inherits:
Object
  • Object
show all
Defined in:
lib/onelogin/api/models/otp_device.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#activeObject

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_nameObject

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

#defaultObject

Returns the value of attribute default.


7
8
9
# File 'lib/onelogin/api/models/otp_device.rb', line 7

def default
  @default
end

#idObject

Returns the value of attribute id.


7
8
9
# File 'lib/onelogin/api/models/otp_device.rb', line 7

def id
  @id
end

#needs_triggerObject

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_numberObject

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_tokenObject

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_nameObject

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_nameObject

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