Class: WorkOS::ConfigureDataIntegrationBody
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::ConfigureDataIntegrationBody
- Defined in:
- lib/workos/pipes_provider/configure_data_integration_body.rb
Constant Summary collapse
- HASH_ATTRS =
{ enabled: :enabled, scopes: :scopes, 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.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#scopes ⇒ Object
Returns the value of attribute scopes.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ ConfigureDataIntegrationBody
constructor
A new instance of ConfigureDataIntegrationBody.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ ConfigureDataIntegrationBody
Returns a new instance of ConfigureDataIntegrationBody.
20 21 22 23 24 25 26 |
# File 'lib/workos/pipes_provider/configure_data_integration_body.rb', line 20 def initialize(json) hash = self.class.normalize(json) @enabled = hash[:enabled] @scopes = hash[:scopes] || [] @client_id = hash[:client_id] @client_secret = hash[:client_secret] end |
Instance Attribute Details
#client_id ⇒ Object
Returns the value of attribute client_id.
14 15 16 |
# File 'lib/workos/pipes_provider/configure_data_integration_body.rb', line 14 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
14 15 16 |
# File 'lib/workos/pipes_provider/configure_data_integration_body.rb', line 14 def client_secret @client_secret end |
#enabled ⇒ Object
Returns the value of attribute enabled.
14 15 16 |
# File 'lib/workos/pipes_provider/configure_data_integration_body.rb', line 14 def enabled @enabled end |
#scopes ⇒ Object
Returns the value of attribute scopes.
14 15 16 |
# File 'lib/workos/pipes_provider/configure_data_integration_body.rb', line 14 def scopes @scopes end |