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, config: :config }.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.
-
#config ⇒ Object
Returns the value of attribute config.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#scopes ⇒ Object
Returns the value of attribute scopes.
Instance Method Summary collapse
-
#initialize(json) ⇒ ConfigureDataIntegrationBody
constructor
A new instance of ConfigureDataIntegrationBody.
Constructor Details
#initialize(json) ⇒ ConfigureDataIntegrationBody
Returns a new instance of ConfigureDataIntegrationBody.
22 23 24 25 26 27 28 29 |
# File 'lib/workos/pipes_provider/configure_data_integration_body.rb', line 22 def initialize(json) hash = self.class.normalize(json) @enabled = hash[:enabled] @scopes = hash[:scopes] || [] @client_id = hash[:client_id] @client_secret = hash[:client_secret] @config = hash[:config] || {} end |
Instance Attribute Details
#client_id ⇒ Object
Returns the value of attribute client_id.
15 16 17 |
# File 'lib/workos/pipes_provider/configure_data_integration_body.rb', line 15 def client_id @client_id end |
#client_secret ⇒ Object
Returns the value of attribute client_secret.
15 16 17 |
# File 'lib/workos/pipes_provider/configure_data_integration_body.rb', line 15 def client_secret @client_secret end |
#config ⇒ Object
Returns the value of attribute config.
15 16 17 |
# File 'lib/workos/pipes_provider/configure_data_integration_body.rb', line 15 def config @config end |
#enabled ⇒ Object
Returns the value of attribute enabled.
15 16 17 |
# File 'lib/workos/pipes_provider/configure_data_integration_body.rb', line 15 def enabled @enabled end |
#scopes ⇒ Object
Returns the value of attribute scopes.
15 16 17 |
# File 'lib/workos/pipes_provider/configure_data_integration_body.rb', line 15 def scopes @scopes end |