Class: WorkOS::RadarStandaloneAssessRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::RadarStandaloneAssessRequest
- 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
-
#action ⇒ Object
Returns the value of attribute action.
-
#auth_method ⇒ Object
Returns the value of attribute auth_method.
-
#bot_score ⇒ Object
Returns the value of attribute bot_score.
-
#device_fingerprint ⇒ Object
Returns the value of attribute device_fingerprint.
-
#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.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ RadarStandaloneAssessRequest
constructor
A new instance of RadarStandaloneAssessRequest.
Methods inherited from Types::BaseModel
Methods included from HashProvider
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
#action ⇒ Object
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_method ⇒ Object
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_score ⇒ Object
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_fingerprint ⇒ Object
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 |
#email ⇒ Object
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_address ⇒ Object
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_agent ⇒ Object
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 |