Class: WorkOS::AuthenticationFactorEnrolledSms

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_numberObject

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