Class: WorkOS::DataIntegrationCredentialsResponse

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

Constant Summary collapse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DataIntegrationCredentialsResponse

Returns a new instance of DataIntegrationCredentialsResponse.



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

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

Instance Attribute Details

#activeObject

Returns the value of attribute active.



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

def active
  @active
end

#credentialObject

Returns the value of attribute credential.



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

def credential
  @credential
end

#errorObject

Returns the value of attribute error.



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

def error
  @error
end