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 }.freeze
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#auth_method ⇒ Object
Returns the value of attribute auth_method.
-
#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.
22 23 24 25 26 27 28 29 |
# File 'lib/workos/radar/radar_standalone_assess_request.rb', line 22 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] end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
15 16 17 |
# File 'lib/workos/radar/radar_standalone_assess_request.rb', line 15 def action @action end |
#auth_method ⇒ Object
Returns the value of attribute auth_method.
15 16 17 |
# File 'lib/workos/radar/radar_standalone_assess_request.rb', line 15 def auth_method @auth_method end |
#email ⇒ Object
Returns the value of attribute email.
15 16 17 |
# File 'lib/workos/radar/radar_standalone_assess_request.rb', line 15 def email @email end |
#ip_address ⇒ Object
Returns the value of attribute ip_address.
15 16 17 |
# File 'lib/workos/radar/radar_standalone_assess_request.rb', line 15 def ip_address @ip_address end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
15 16 17 |
# File 'lib/workos/radar/radar_standalone_assess_request.rb', line 15 def user_agent @user_agent end |