Class: WorkOS::AuthenticationFactorsCreateRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AuthenticationFactorsCreateRequest
- Defined in:
- lib/workos/multi_factor_auth/authentication_factors_create_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ type: :type, phone_number: :phone_number, totp_issuer: :totp_issuer, totp_user: :totp_user, user_id: :user_id }.freeze
Instance Attribute Summary collapse
-
#phone_number ⇒ Object
Returns the value of attribute phone_number.
-
#totp_issuer ⇒ Object
Returns the value of attribute totp_issuer.
-
#totp_user ⇒ Object
Returns the value of attribute totp_user.
-
#type ⇒ Object
Returns the value of attribute type.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ AuthenticationFactorsCreateRequest
constructor
A new instance of AuthenticationFactorsCreateRequest.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ AuthenticationFactorsCreateRequest
Returns a new instance of AuthenticationFactorsCreateRequest.
22 23 24 25 26 27 28 29 |
# File 'lib/workos/multi_factor_auth/authentication_factors_create_request.rb', line 22 def initialize(json) hash = self.class.normalize(json) @type = hash[:type] @phone_number = hash[:phone_number] @totp_issuer = hash[:totp_issuer] @totp_user = hash[:totp_user] @user_id = hash[:user_id] end |
Instance Attribute Details
#phone_number ⇒ Object
Returns the value of attribute phone_number.
15 16 17 |
# File 'lib/workos/multi_factor_auth/authentication_factors_create_request.rb', line 15 def phone_number @phone_number end |
#totp_issuer ⇒ Object
Returns the value of attribute totp_issuer.
15 16 17 |
# File 'lib/workos/multi_factor_auth/authentication_factors_create_request.rb', line 15 def totp_issuer @totp_issuer end |
#totp_user ⇒ Object
Returns the value of attribute totp_user.
15 16 17 |
# File 'lib/workos/multi_factor_auth/authentication_factors_create_request.rb', line 15 def totp_user @totp_user end |
#type ⇒ Object
Returns the value of attribute type.
15 16 17 |
# File 'lib/workos/multi_factor_auth/authentication_factors_create_request.rb', line 15 def type @type end |
#user_id ⇒ Object
Returns the value of attribute user_id.
15 16 17 |
# File 'lib/workos/multi_factor_auth/authentication_factors_create_request.rb', line 15 def user_id @user_id end |