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