Method: OCI::DatabaseMigration::Models::ResumeJobDetails#initialize

Defined in:
lib/oci/database_migration/models/resume_job_details.rb

#initialize(attributes = {}) ⇒ ResumeJobDetails

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):

  • :wait_after (String)

    The value to assign to the #wait_after property



64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/oci/database_migration/models/resume_job_details.rb', line 64

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.wait_after = attributes[:'waitAfter'] if attributes[:'waitAfter']

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

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