Class: WorkOS::DataIntegrationConfigurationResponse

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/pipes_provider/data_integration_configuration_response.rb

Constant Summary collapse

HASH_ATTRS =
{
  object: :object,
  id: :id,
  organization_id: :organization_id,
  slug: :slug,
  name: :name,
  enabled: :enabled,
  scopes: :scopes,
  config: :config,
  created_at: :created_at,
  updated_at: :updated_at,
  credentials: :credentials
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DataIntegrationConfigurationResponse

Returns a new instance of DataIntegrationConfigurationResponse.



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

def initialize(json)
  hash = self.class.normalize(json)
  @object = hash[:object]
  @id = hash[:id]
  @organization_id = hash[:organization_id]
  @slug = hash[:slug]
  @name = hash[:name]
  @enabled = hash[:enabled]
  @scopes = hash[:scopes] || []
  @config = hash[:config] || {}
  @created_at = hash[:created_at]
  @updated_at = hash[:updated_at]
  @credentials = hash[:credentials] ? WorkOS::DataIntegrationCredentials.new(hash[:credentials]) : nil
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



21
22
23
# File 'lib/workos/pipes_provider/data_integration_configuration_response.rb', line 21

def config
  @config
end

#created_atObject

Returns the value of attribute created_at.



21
22
23
# File 'lib/workos/pipes_provider/data_integration_configuration_response.rb', line 21

def created_at
  @created_at
end

#credentialsObject

Returns the value of attribute credentials.



21
22
23
# File 'lib/workos/pipes_provider/data_integration_configuration_response.rb', line 21

def credentials
  @credentials
end

#enabledObject

Returns the value of attribute enabled.



21
22
23
# File 'lib/workos/pipes_provider/data_integration_configuration_response.rb', line 21

def enabled
  @enabled
end

#idObject

Returns the value of attribute id.



21
22
23
# File 'lib/workos/pipes_provider/data_integration_configuration_response.rb', line 21

def id
  @id
end

#nameObject

Returns the value of attribute name.



21
22
23
# File 'lib/workos/pipes_provider/data_integration_configuration_response.rb', line 21

def name
  @name
end

#objectObject

Returns the value of attribute object.



21
22
23
# File 'lib/workos/pipes_provider/data_integration_configuration_response.rb', line 21

def object
  @object
end

#organization_idObject

Returns the value of attribute organization_id.



21
22
23
# File 'lib/workos/pipes_provider/data_integration_configuration_response.rb', line 21

def organization_id
  @organization_id
end

#scopesObject

Returns the value of attribute scopes.



21
22
23
# File 'lib/workos/pipes_provider/data_integration_configuration_response.rb', line 21

def scopes
  @scopes
end

#slugObject

Returns the value of attribute slug.



21
22
23
# File 'lib/workos/pipes_provider/data_integration_configuration_response.rb', line 21

def slug
  @slug
end

#updated_atObject

Returns the value of attribute updated_at.



21
22
23
# File 'lib/workos/pipes_provider/data_integration_configuration_response.rb', line 21

def updated_at
  @updated_at
end