Class: WorkOS::SendRadarSmsChallenge
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::SendRadarSmsChallenge
- 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
-
#ip_address ⇒ Object
Returns the value of attribute ip_address.
-
#pending_authentication_token ⇒ Object
Returns the value of attribute pending_authentication_token.
-
#phone_number ⇒ Object
Returns the value of attribute phone_number.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ SendRadarSmsChallenge
constructor
A new instance of SendRadarSmsChallenge.
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_address ⇒ Object
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_token ⇒ Object
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_number ⇒ Object
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_agent ⇒ Object
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_id ⇒ Object
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 |