Method: OCI::ResourceManager::Models::FailureDetails#initialize

Defined in:
lib/oci/resource_manager/models/failure_details.rb

#initialize(attributes = {}) ⇒ FailureDetails

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):

  • :code (String)

    The value to assign to the #code property

  • :message (String)

    The value to assign to the #message property



56
57
58
59
60
61
62
63
64
65
# File 'lib/oci/resource_manager/models/failure_details.rb', line 56

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

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