Class: WorkOS::AuthenticationRadarRiskDetectedData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AuthenticationRadarRiskDetectedData
- Defined in:
- lib/workos/user_management/authentication_radar_risk_detected_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ auth_method: :auth_method, action: :action, control: :control, blocklist_type: :blocklist_type, ip_address: :ip_address, user_agent: :user_agent, user_id: :user_id, email: :email }.freeze
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#auth_method ⇒ Object
Returns the value of attribute auth_method.
-
#blocklist_type ⇒ Object
Returns the value of attribute blocklist_type.
-
#control ⇒ Object
Returns the value of attribute control.
-
#email ⇒ Object
Returns the value of attribute email.
-
#ip_address ⇒ Object
Returns the value of attribute ip_address.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ AuthenticationRadarRiskDetectedData
constructor
A new instance of AuthenticationRadarRiskDetectedData.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ AuthenticationRadarRiskDetectedData
Returns a new instance of AuthenticationRadarRiskDetectedData.
28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/workos/user_management/authentication_radar_risk_detected_data.rb', line 28 def initialize(json) hash = self.class.normalize(json) @auth_method = hash[:auth_method] @action = hash[:action] @control = hash[:control] @blocklist_type = hash[:blocklist_type] @ip_address = hash[:ip_address] @user_agent = hash[:user_agent] @user_id = hash[:user_id] @email = hash[:email] end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
18 19 20 |
# File 'lib/workos/user_management/authentication_radar_risk_detected_data.rb', line 18 def action @action end |
#auth_method ⇒ Object
Returns the value of attribute auth_method.
18 19 20 |
# File 'lib/workos/user_management/authentication_radar_risk_detected_data.rb', line 18 def auth_method @auth_method end |
#blocklist_type ⇒ Object
Returns the value of attribute blocklist_type.
18 19 20 |
# File 'lib/workos/user_management/authentication_radar_risk_detected_data.rb', line 18 def blocklist_type @blocklist_type end |
#control ⇒ Object
Returns the value of attribute control.
18 19 20 |
# File 'lib/workos/user_management/authentication_radar_risk_detected_data.rb', line 18 def control @control end |
#email ⇒ Object
Returns the value of attribute email.
18 19 20 |
# File 'lib/workos/user_management/authentication_radar_risk_detected_data.rb', line 18 def email @email end |
#ip_address ⇒ Object
Returns the value of attribute ip_address.
18 19 20 |
# File 'lib/workos/user_management/authentication_radar_risk_detected_data.rb', line 18 def ip_address @ip_address end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
18 19 20 |
# File 'lib/workos/user_management/authentication_radar_risk_detected_data.rb', line 18 def user_agent @user_agent end |
#user_id ⇒ Object
Returns the value of attribute user_id.
18 19 20 |
# File 'lib/workos/user_management/authentication_radar_risk_detected_data.rb', line 18 def user_id @user_id end |