Class: WorkOS::AuthenticationRadarRiskDetectedData

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

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) ⇒ 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

#actionObject

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_methodObject

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_typeObject

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

#controlObject

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

#emailObject

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_addressObject

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_agentObject

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_idObject

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