Class: WorkOS::UpdateDataIntegration
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::UpdateDataIntegration
- Defined in:
- lib/workos/pipes/update_data_integration.rb
Constant Summary collapse
- HASH_ATTRS =
{ description: :description, enabled: :enabled, scopes: :scopes, credentials: :credentials, custom_provider: :custom_provider }.freeze
Instance Attribute Summary collapse
-
#credentials ⇒ Object
Returns the value of attribute credentials.
-
#custom_provider ⇒ Object
Returns the value of attribute custom_provider.
-
#description ⇒ Object
Returns the value of attribute description.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#scopes ⇒ Object
Returns the value of attribute scopes.
Instance Method Summary collapse
-
#initialize(json) ⇒ UpdateDataIntegration
constructor
A new instance of UpdateDataIntegration.
Constructor Details
#initialize(json) ⇒ UpdateDataIntegration
Returns a new instance of UpdateDataIntegration.
22 23 24 25 26 27 28 29 |
# File 'lib/workos/pipes/update_data_integration.rb', line 22 def initialize(json) hash = self.class.normalize(json) @description = hash[:description] @enabled = hash[:enabled] @scopes = hash[:scopes] || [] @credentials = hash[:credentials] ? WorkOS::DataIntegrationCredentialsDto.new(hash[:credentials]) : nil @custom_provider = hash[:custom_provider] ? WorkOS::UpdateCustomProviderDefinition.new(hash[:custom_provider]) : nil end |
Instance Attribute Details
#credentials ⇒ Object
Returns the value of attribute credentials.
15 16 17 |
# File 'lib/workos/pipes/update_data_integration.rb', line 15 def credentials @credentials end |
#custom_provider ⇒ Object
Returns the value of attribute custom_provider.
15 16 17 |
# File 'lib/workos/pipes/update_data_integration.rb', line 15 def custom_provider @custom_provider end |
#description ⇒ Object
Returns the value of attribute description.
15 16 17 |
# File 'lib/workos/pipes/update_data_integration.rb', line 15 def description @description end |
#enabled ⇒ Object
Returns the value of attribute enabled.
15 16 17 |
# File 'lib/workos/pipes/update_data_integration.rb', line 15 def enabled @enabled end |
#scopes ⇒ Object
Returns the value of attribute scopes.
15 16 17 |
# File 'lib/workos/pipes/update_data_integration.rb', line 15 def scopes @scopes end |