Class: WorkOS::DataIntegrationCredentials
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::DataIntegrationCredentials
- Defined in:
- lib/workos/pipes_provider/data_integration_credentials.rb
Constant Summary collapse
- HASH_ATTRS =
{ credentials_type: :credentials_type, has_credentials: :has_credentials, client_id: :client_id, client_secret_last_four: :client_secret_last_four, redirect_uri: :redirect_uri }.freeze
Instance Attribute Summary collapse
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#client_secret_last_four ⇒ Object
Returns the value of attribute client_secret_last_four.
-
#credentials_type ⇒ Object
Returns the value of attribute credentials_type.
-
#has_credentials ⇒ Object
Returns the value of attribute has_credentials.
-
#redirect_uri ⇒ Object
Returns the value of attribute redirect_uri.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ DataIntegrationCredentials
constructor
A new instance of DataIntegrationCredentials.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ DataIntegrationCredentials
Returns a new instance of DataIntegrationCredentials.
22 23 24 25 26 27 28 29 |
# File 'lib/workos/pipes_provider/data_integration_credentials.rb', line 22 def initialize(json) hash = self.class.normalize(json) @credentials_type = hash[:credentials_type] @has_credentials = hash[:has_credentials] @client_id = hash[:client_id] @client_secret_last_four = hash[:client_secret_last_four] @redirect_uri = hash[:redirect_uri] end |
Instance Attribute Details
#client_id ⇒ Object
Returns the value of attribute client_id.
15 16 17 |
# File 'lib/workos/pipes_provider/data_integration_credentials.rb', line 15 def client_id @client_id end |
#client_secret_last_four ⇒ Object
Returns the value of attribute client_secret_last_four.
15 16 17 |
# File 'lib/workos/pipes_provider/data_integration_credentials.rb', line 15 def client_secret_last_four @client_secret_last_four end |
#credentials_type ⇒ Object
Returns the value of attribute credentials_type.
15 16 17 |
# File 'lib/workos/pipes_provider/data_integration_credentials.rb', line 15 def credentials_type @credentials_type end |
#has_credentials ⇒ Object
Returns the value of attribute has_credentials.
15 16 17 |
# File 'lib/workos/pipes_provider/data_integration_credentials.rb', line 15 def has_credentials @has_credentials end |
#redirect_uri ⇒ Object
Returns the value of attribute redirect_uri.
15 16 17 |
# File 'lib/workos/pipes_provider/data_integration_credentials.rb', line 15 def redirect_uri @redirect_uri end |