Class: WorkOS::DataIntegrationCredentialsResponseWithCredential
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::DataIntegrationCredentialsResponseWithCredential
- 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
-
#active ⇒ Object
Returns the value of attribute active.
-
#credential ⇒ Object
Returns the value of attribute credential.
Instance Method Summary collapse
-
#initialize(json) ⇒ DataIntegrationCredentialsResponseWithCredential
constructor
A new instance of DataIntegrationCredentialsResponseWithCredential.
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 |