Class: WorkOS::PipesAccountConnectionAddFailedData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/shared/pipes_account_connection_add_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,
  account_identifier: :account_identifier,
  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) ⇒ PipesAccountConnectionAddFailedData

Returns a new instance of PipesAccountConnectionAddFailedData.



34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/workos/shared/pipes_account_connection_add_failed_data.rb', line 34

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]
  @account_identifier = hash[:account_identifier]
  @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

#account_identifierObject

Returns the value of attribute account_identifier.



21
22
23
# File 'lib/workos/shared/pipes_account_connection_add_failed_data.rb', line 21

def 
  @account_identifier
end

#created_atObject

Returns the value of attribute created_at.



21
22
23
# File 'lib/workos/shared/pipes_account_connection_add_failed_data.rb', line 21

def created_at
  @created_at
end

#data_integration_idObject

Returns the value of attribute data_integration_id.



21
22
23
# File 'lib/workos/shared/pipes_account_connection_add_failed_data.rb', line 21

def data_integration_id
  @data_integration_id
end

#error_codeObject

Returns the value of attribute error_code.



21
22
23
# File 'lib/workos/shared/pipes_account_connection_add_failed_data.rb', line 21

def error_code
  @error_code
end

#error_reasonObject

Returns the value of attribute error_reason.



21
22
23
# File 'lib/workos/shared/pipes_account_connection_add_failed_data.rb', line 21

def error_reason
  @error_reason
end

#objectObject

Returns the value of attribute object.



21
22
23
# File 'lib/workos/shared/pipes_account_connection_add_failed_data.rb', line 21

def object
  @object
end

#organization_idObject

Returns the value of attribute organization_id.



21
22
23
# File 'lib/workos/shared/pipes_account_connection_add_failed_data.rb', line 21

def organization_id
  @organization_id
end

#provider_errorObject

Returns the value of attribute provider_error.



21
22
23
# File 'lib/workos/shared/pipes_account_connection_add_failed_data.rb', line 21

def provider_error
  @provider_error
end

#provider_error_descriptionObject

Returns the value of attribute provider_error_description.



21
22
23
# File 'lib/workos/shared/pipes_account_connection_add_failed_data.rb', line 21

def provider_error_description
  @provider_error_description
end

#provider_slugObject

Returns the value of attribute provider_slug.



21
22
23
# File 'lib/workos/shared/pipes_account_connection_add_failed_data.rb', line 21

def provider_slug
  @provider_slug
end

#user_idObject

Returns the value of attribute user_id.



21
22
23
# File 'lib/workos/shared/pipes_account_connection_add_failed_data.rb', line 21

def user_id
  @user_id
end