Class: WorkOS::SendRadarSmsChallenge

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

Constant Summary collapse

HASH_ATTRS =
{
  user_id: :user_id,
  pending_authentication_token: :pending_authentication_token,
  phone_number: :phone_number,
  ip_address: :ip_address,
  user_agent: :user_agent
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SendRadarSmsChallenge

Returns a new instance of SendRadarSmsChallenge.



22
23
24
25
26
27
28
29
# File 'lib/workos/user_management/send_radar_sms_challenge.rb', line 22

def initialize(json)
  hash = self.class.normalize(json)
  @user_id = hash[:user_id]
  @pending_authentication_token = hash[:pending_authentication_token]
  @phone_number = hash[:phone_number]
  @ip_address = hash[:ip_address]
  @user_agent = hash[:user_agent]
end

Instance Attribute Details

#ip_addressObject

Returns the value of attribute ip_address.



15
16
17
# File 'lib/workos/user_management/send_radar_sms_challenge.rb', line 15

def ip_address
  @ip_address
end

#pending_authentication_tokenObject

Returns the value of attribute pending_authentication_token.



15
16
17
# File 'lib/workos/user_management/send_radar_sms_challenge.rb', line 15

def pending_authentication_token
  @pending_authentication_token
end

#phone_numberObject

Returns the value of attribute phone_number.



15
16
17
# File 'lib/workos/user_management/send_radar_sms_challenge.rb', line 15

def phone_number
  @phone_number
end

#user_agentObject

Returns the value of attribute user_agent.



15
16
17
# File 'lib/workos/user_management/send_radar_sms_challenge.rb', line 15

def user_agent
  @user_agent
end

#user_idObject

Returns the value of attribute user_id.



15
16
17
# File 'lib/workos/user_management/send_radar_sms_challenge.rb', line 15

def user_id
  @user_id
end