Class: WorkOS::RadarStandaloneAssessRequest

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/radar/radar_standalone_assess_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  ip_address: :ip_address,
  user_agent: :user_agent,
  email: :email,
  auth_method: :auth_method,
  action: :action,
  device_fingerprint: :device_fingerprint,
  bot_score: :bot_score
}.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) ⇒ RadarStandaloneAssessRequest

Returns a new instance of RadarStandaloneAssessRequest.



26
27
28
29
30
31
32
33
34
35
# File 'lib/workos/radar/radar_standalone_assess_request.rb', line 26

def initialize(json)
  hash = self.class.normalize(json)
  @ip_address = hash[:ip_address]
  @user_agent = hash[:user_agent]
  @email = hash[:email]
  @auth_method = hash[:auth_method]
  @action = hash[:action]
  @device_fingerprint = hash[:device_fingerprint]
  @bot_score = hash[:bot_score]
end

Instance Attribute Details

#actionObject

Returns the value of attribute action.



17
18
19
# File 'lib/workos/radar/radar_standalone_assess_request.rb', line 17

def action
  @action
end

#auth_methodObject

Returns the value of attribute auth_method.



17
18
19
# File 'lib/workos/radar/radar_standalone_assess_request.rb', line 17

def auth_method
  @auth_method
end

#bot_scoreObject

Returns the value of attribute bot_score.



17
18
19
# File 'lib/workos/radar/radar_standalone_assess_request.rb', line 17

def bot_score
  @bot_score
end

#device_fingerprintObject

Returns the value of attribute device_fingerprint.



17
18
19
# File 'lib/workos/radar/radar_standalone_assess_request.rb', line 17

def device_fingerprint
  @device_fingerprint
end

#emailObject

Returns the value of attribute email.



17
18
19
# File 'lib/workos/radar/radar_standalone_assess_request.rb', line 17

def email
  @email
end

#ip_addressObject

Returns the value of attribute ip_address.



17
18
19
# File 'lib/workos/radar/radar_standalone_assess_request.rb', line 17

def ip_address
  @ip_address
end

#user_agentObject

Returns the value of attribute user_agent.



17
18
19
# File 'lib/workos/radar/radar_standalone_assess_request.rb', line 17

def user_agent
  @user_agent
end