Method: OCI::DataIntegration::Models::DynamicTypeHandler#initialize

Defined in:
lib/oci/data_integration/models/dynamic_type_handler.rb

#initialize(attributes = {}) ⇒ DynamicTypeHandler

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):

  • :model_type (String)

    The value to assign to the #model_type property



61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/oci/data_integration/models/dynamic_type_handler.rb', line 61

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  self.model_type = attributes[:'modelType'] if attributes[:'modelType']

  raise 'You cannot provide both :modelType and :model_type' if attributes.key?(:'modelType') && attributes.key?(:'model_type')

  self.model_type = attributes[:'model_type'] if attributes[:'model_type']
end