Class: WorkOS::SendRadarSmsChallengeResponse

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/user_management/send_radar_sms_challenge_response.rb

Constant Summary collapse

HASH_ATTRS =
{
  verification_id: :verification_id,
  phone_number: :phone_number
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SendRadarSmsChallengeResponse

Returns a new instance of SendRadarSmsChallengeResponse.



16
17
18
19
20
# File 'lib/workos/user_management/send_radar_sms_challenge_response.rb', line 16

def initialize(json)
  hash = self.class.normalize(json)
  @verification_id = hash[:verification_id]
  @phone_number = hash[:phone_number]
end

Instance Attribute Details

#phone_numberObject

Returns the value of attribute phone_number.



12
13
14
# File 'lib/workos/user_management/send_radar_sms_challenge_response.rb', line 12

def phone_number
  @phone_number
end

#verification_idObject

Returns the value of attribute verification_id.



12
13
14
# File 'lib/workos/user_management/send_radar_sms_challenge_response.rb', line 12

def verification_id
  @verification_id
end