Class: WorkOS::DataIntegrationsListResponseData

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/pipes/data_integrations_list_response_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  object: :object,
  id: :id,
  name: :name,
  description: :description,
  slug: :slug,
  integration_type: :integration_type,
  credentials_type: :credentials_type,
  scopes: :scopes,
  ownership: :ownership,
  created_at: :created_at,
  updated_at: :updated_at,
  connected_account: :connected_account
}.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) ⇒ DataIntegrationsListResponseData

Returns a new instance of DataIntegrationsListResponseData.



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 36

def initialize(json)
  hash = self.class.normalize(json)
  @object = hash[:object]
  @id = hash[:id]
  @name = hash[:name]
  @description = hash[:description]
  @slug = hash[:slug]
  @integration_type = hash[:integration_type]
  @credentials_type = hash[:credentials_type]
  @scopes = hash[:scopes] || []
  @ownership = hash[:ownership]
  @created_at = hash[:created_at]
  @updated_at = hash[:updated_at]
  @connected_account = hash[:connected_account] ? WorkOS::DataIntegrationsListResponseDataConnectedAccount.new(hash[:connected_account]) : nil
end

Instance Attribute Details

#connected_accountObject

Returns the value of attribute connected_account.



22
23
24
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 22

def 
  @connected_account
end

#created_atObject

Returns the value of attribute created_at.



22
23
24
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 22

def created_at
  @created_at
end

#credentials_typeObject

Returns the value of attribute credentials_type.



22
23
24
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 22

def credentials_type
  @credentials_type
end

#descriptionObject

Returns the value of attribute description.



22
23
24
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 22

def description
  @description
end

#idObject

Returns the value of attribute id.



22
23
24
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 22

def id
  @id
end

#integration_typeObject

Returns the value of attribute integration_type.



22
23
24
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 22

def integration_type
  @integration_type
end

#nameObject

Returns the value of attribute name.



22
23
24
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 22

def name
  @name
end

#objectObject

Returns the value of attribute object.



22
23
24
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 22

def object
  @object
end

#ownershipObject

Returns the value of attribute ownership.



22
23
24
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 22

def ownership
  @ownership
end

#scopesObject

Returns the value of attribute scopes.



22
23
24
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 22

def scopes
  @scopes
end

#slugObject

Returns the value of attribute slug.



22
23
24
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 22

def slug
  @slug
end

#updated_atObject

Returns the value of attribute updated_at.



22
23
24
# File 'lib/workos/pipes/data_integrations_list_response_data.rb', line 22

def updated_at
  @updated_at
end