Class: WorkOS::AuthenticationFactorEnrolledSms

Inherits:
Types::BaseModel 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

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

normalize

Methods included from HashProvider

#inspect, #to_h, #to_json

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