Class: WorkOS::AuthenticationFactorEnrolledSms
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AuthenticationFactorEnrolledSms
- Defined in:
- lib/workos/multi_factor_auth/authentication_factor_enrolled_sms.rb
Constant Summary collapse
- HASH_ATTRS =
{ phone_number: :phone_number }.freeze
Instance Attribute Summary collapse
-
#phone_number ⇒ Object
Returns the value of attribute phone_number.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ AuthenticationFactorEnrolledSms
constructor
A new instance of AuthenticationFactorEnrolledSms.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ AuthenticationFactorEnrolledSms
Returns a new instance of AuthenticationFactorEnrolledSms.
13 14 15 16 |
# File 'lib/workos/multi_factor_auth/authentication_factor_enrolled_sms.rb', line 13 def initialize(json) hash = self.class.normalize(json) @phone_number = hash[:phone_number] end |
Instance Attribute Details
#phone_number ⇒ Object
Returns the value of attribute phone_number.
11 12 13 |
# File 'lib/workos/multi_factor_auth/authentication_factor_enrolled_sms.rb', line 11 def phone_number @phone_number end |