Class: WorkOS::DataIntegrationCredentialsResponseWithCredential

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/shared/data_integration_credentials_response_with_credential.rb

Constant Summary collapse

HASH_ATTRS =
{
  active: :active,
  credential: :credential
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DataIntegrationCredentialsResponseWithCredential

Returns a new instance of DataIntegrationCredentialsResponseWithCredential.



16
17
18
19
20
# File 'lib/workos/shared/data_integration_credentials_response_with_credential.rb', line 16

def initialize(json)
  hash = self.class.normalize(json)
  @active = hash[:active]
  @credential = hash[:credential] ? WorkOS::DataIntegrationVendedCredential.new(hash[:credential]) : nil
end

Instance Attribute Details

#active ⇒ Object

Returns the value of attribute active.



12
13
14
# File 'lib/workos/shared/data_integration_credentials_response_with_credential.rb', line 12

def active
  @active
end

#credential ⇒ Object

Returns the value of attribute credential.



12
13
14
# File 'lib/workos/shared/data_integration_credentials_response_with_credential.rb', line 12

def credential
  @credential
end