Method: OCI::CloudGuard::Models::UpdateProblemStatusDetails#initialize

Defined in:
lib/oci/cloud_guard/models/update_problem_status_details.rb

#initialize(attributes = {}) ⇒ UpdateProblemStatusDetails

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):

  • :status (String)

    The value to assign to the #status property

  • :comment (String)

    The value to assign to the #comment property



53
54
55
56
57
58
59
60
61
62
# File 'lib/oci/cloud_guard/models/update_problem_status_details.rb', line 53

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

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