Class: OneLogin::Api::Models::AuthFactor
- Inherits:
-
Object
- Object
- OneLogin::Api::Models::AuthFactor
- Defined in:
- lib/onelogin/api/models/auth_factor.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(data) ⇒ AuthFactor
constructor
A new instance of AuthFactor.
Constructor Details
#initialize(data) ⇒ AuthFactor
Returns a new instance of AuthFactor.
9 10 11 12 |
# File 'lib/onelogin/api/models/auth_factor.rb', line 9 def initialize(data) @id = data['factor_id'] @name = data['name'].to_s end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/onelogin/api/models/auth_factor.rb', line 7 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/onelogin/api/models/auth_factor.rb', line 7 def name @name end |