Class: WorkOS::ConfigureDataIntegrationBody

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_idObject

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_secretObject

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

#configObject

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

#enabledObject

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

#scopesObject

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