Class: WorkOS::DataIntegrationCredentialsDto
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::DataIntegrationCredentialsDto
- Defined in:
- lib/workos/pipes/data_integration_credentials_dto.rb
Constant Summary collapse
- HASH_ATTRS =
{ type: :type, client_id: :client_id, client_secret: :client_secret }.freeze
Instance Attribute Summary collapse
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret ⇒ Object
Returns the value of attribute client_secret.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(json) ⇒ DataIntegrationCredentialsDto
constructor
A new instance of DataIntegrationCredentialsDto.
Constructor Details
#initialize(json) ⇒ DataIntegrationCredentialsDto
Returns a new instance of DataIntegrationCredentialsDto.
18 19 20 21 22 23 |
# File 'lib/workos/pipes/data_integration_credentials_dto.rb', line 18 def initialize(json) hash = self.class.normalize(json) @type = hash[:type] @client_id = hash[:client_id] @client_secret = hash[: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_credentials_dto.rb', line 13 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
13 14 15 |
# File 'lib/workos/pipes/data_integration_credentials_dto.rb', line 13 def client_secret @client_secret end |
#type ⇒ Object
Returns the value of attribute type.
13 14 15 |
# File 'lib/workos/pipes/data_integration_credentials_dto.rb', line 13 def type @type end |