Class: WorkOS::DataIntegrationCredentialsDto

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/pipes/data_integration_credentials_dto.rb

Constant Summary collapse

HASH_ATTRS =
{
  type: :type,
  client_id: :client_id,
  client_secret: :client_secret
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DataIntegrationCredentialsDto

Returns a new instance of DataIntegrationCredentialsDto.



18
19
20
21
22
23
# File 'lib/workos/pipes/data_integration_credentials_dto.rb', line 18

def initialize(json)
  hash = self.class.normalize(json)
  @type = hash[:type]
  @client_id = hash[:client_id]
  @client_secret = hash[:client_secret]
end

Instance Attribute Details

#client_idObject

Returns the value of attribute client_id.



13
14
15
# File 'lib/workos/pipes/data_integration_credentials_dto.rb', line 13

def client_id
  @client_id
end

#client_secretObject

Returns the value of attribute client_secret.



13
14
15
# File 'lib/workos/pipes/data_integration_credentials_dto.rb', line 13

def client_secret
  @client_secret
end

#typeObject

Returns the value of attribute type.



13
14
15
# File 'lib/workos/pipes/data_integration_credentials_dto.rb', line 13

def type
  @type
end