Class: WorkOS::DataIntegrationCredentialsResponse
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::DataIntegrationCredentialsResponse
- 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
-
#active ⇒ Object
Returns the value of attribute active.
-
#credential ⇒ Object
Returns the value of attribute credential.
-
#error ⇒ Object
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(json) ⇒ DataIntegrationCredentialsResponse
constructor
A new instance of DataIntegrationCredentialsResponse.
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
#active ⇒ Object
Returns the value of attribute active.
13 14 15 |
# File 'lib/workos/pipes/data_integration_credentials_response.rb', line 13 def active @active end |
#credential ⇒ Object
Returns the value of attribute credential.
13 14 15 |
# File 'lib/workos/pipes/data_integration_credentials_response.rb', line 13 def credential @credential end |
#error ⇒ Object
Returns the value of attribute error.
13 14 15 |
# File 'lib/workos/pipes/data_integration_credentials_response.rb', line 13 def error @error end |