Class: WorkOS::DataIntegrationCredential

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

Constant Summary collapse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DataIntegrationCredential

Returns a new instance of DataIntegrationCredential.



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

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

Instance Attribute Details

#client_idObject

Returns the value of attribute client_id.



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

def client_id
  @client_id
end

#redacted_client_secretObject

Returns the value of attribute redacted_client_secret.



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

def redacted_client_secret
  @redacted_client_secret
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end