Class: WorkOS::ActionUserRegistrationDeniedData

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/user_management/action_user_registration_denied_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  action_endpoint_id: :action_endpoint_id,
  action_execution_id: :action_execution_id,
  type: :type,
  verdict: :verdict,
  organization_id: :organization_id,
  email: :email,
  ip_address: :ip_address,
  user_agent: :user_agent
}.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) ⇒ ActionUserRegistrationDeniedData

Returns a new instance of ActionUserRegistrationDeniedData.



28
29
30
31
32
33
34
35
36
37
38
# File 'lib/workos/user_management/action_user_registration_denied_data.rb', line 28

def initialize(json)
  hash = self.class.normalize(json)
  @action_endpoint_id = hash[:action_endpoint_id]
  @action_execution_id = hash[:action_execution_id]
  @type = hash[:type]
  @verdict = hash[:verdict]
  @organization_id = hash[:organization_id]
  @email = hash[:email]
  @ip_address = hash[:ip_address]
  @user_agent = hash[:user_agent]
end

Instance Attribute Details

#action_endpoint_idObject

Returns the value of attribute action_endpoint_id.



18
19
20
# File 'lib/workos/user_management/action_user_registration_denied_data.rb', line 18

def action_endpoint_id
  @action_endpoint_id
end

#action_execution_idObject

Returns the value of attribute action_execution_id.



18
19
20
# File 'lib/workos/user_management/action_user_registration_denied_data.rb', line 18

def action_execution_id
  @action_execution_id
end

#emailObject

Returns the value of attribute email.



18
19
20
# File 'lib/workos/user_management/action_user_registration_denied_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/action_user_registration_denied_data.rb', line 18

def ip_address
  @ip_address
end

#organization_idObject

Returns the value of attribute organization_id.



18
19
20
# File 'lib/workos/user_management/action_user_registration_denied_data.rb', line 18

def organization_id
  @organization_id
end

#typeObject

Returns the value of attribute type.



18
19
20
# File 'lib/workos/user_management/action_user_registration_denied_data.rb', line 18

def type
  @type
end

#user_agentObject

Returns the value of attribute user_agent.



18
19
20
# File 'lib/workos/user_management/action_user_registration_denied_data.rb', line 18

def user_agent
  @user_agent
end

#verdictObject

Returns the value of attribute verdict.



18
19
20
# File 'lib/workos/user_management/action_user_registration_denied_data.rb', line 18

def verdict
  @verdict
end