Class: WorkOS::PipesConnectedAccountConnectionFailedData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/shared/pipes_connected_account_connection_failed_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  object: :object,
  data_integration_id: :data_integration_id,
  provider_slug: :provider_slug,
  user_id: :user_id,
  organization_id: :organization_id,
  error_code: :error_code,
  error_reason: :error_reason,
  provider_error: :provider_error,
  provider_error_description: :provider_error_description,
  created_at: :created_at
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ PipesConnectedAccountConnectionFailedData

Returns a new instance of PipesConnectedAccountConnectionFailedData.



32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/workos/shared/pipes_connected_account_connection_failed_data.rb', line 32

def initialize(json)
  hash = self.class.normalize(json)
  @object = hash[:object]
  @data_integration_id = hash[:data_integration_id]
  @provider_slug = hash[:provider_slug]
  @user_id = hash[:user_id]
  @organization_id = hash[:organization_id]
  @error_code = hash[:error_code]
  @error_reason = hash[:error_reason]
  @provider_error = hash[:provider_error]
  @provider_error_description = hash[:provider_error_description]
  @created_at = hash[:created_at]
end

Instance Attribute Details

#created_atObject

Returns the value of attribute created_at.



20
21
22
# File 'lib/workos/shared/pipes_connected_account_connection_failed_data.rb', line 20

def created_at
  @created_at
end

#data_integration_idObject

Returns the value of attribute data_integration_id.



20
21
22
# File 'lib/workos/shared/pipes_connected_account_connection_failed_data.rb', line 20

def data_integration_id
  @data_integration_id
end

#error_codeObject

Returns the value of attribute error_code.



20
21
22
# File 'lib/workos/shared/pipes_connected_account_connection_failed_data.rb', line 20

def error_code
  @error_code
end

#error_reasonObject

Returns the value of attribute error_reason.



20
21
22
# File 'lib/workos/shared/pipes_connected_account_connection_failed_data.rb', line 20

def error_reason
  @error_reason
end

#objectObject

Returns the value of attribute object.



20
21
22
# File 'lib/workos/shared/pipes_connected_account_connection_failed_data.rb', line 20

def object
  @object
end

#organization_idObject

Returns the value of attribute organization_id.



20
21
22
# File 'lib/workos/shared/pipes_connected_account_connection_failed_data.rb', line 20

def organization_id
  @organization_id
end

#provider_errorObject

Returns the value of attribute provider_error.



20
21
22
# File 'lib/workos/shared/pipes_connected_account_connection_failed_data.rb', line 20

def provider_error
  @provider_error
end

#provider_error_descriptionObject

Returns the value of attribute provider_error_description.



20
21
22
# File 'lib/workos/shared/pipes_connected_account_connection_failed_data.rb', line 20

def provider_error_description
  @provider_error_description
end

#provider_slugObject

Returns the value of attribute provider_slug.



20
21
22
# File 'lib/workos/shared/pipes_connected_account_connection_failed_data.rb', line 20

def provider_slug
  @provider_slug
end

#user_idObject

Returns the value of attribute user_id.



20
21
22
# File 'lib/workos/shared/pipes_connected_account_connection_failed_data.rb', line 20

def user_id
  @user_id
end