Method: OCI::Streaming::Models::PutMessagesDetails#initialize

Defined in:
lib/oci/streaming/models/put_messages_details.rb

#initialize(attributes = {}) ⇒ PutMessagesDetails

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):



38
39
40
41
42
43
44
45
# File 'lib/oci/streaming/models/put_messages_details.rb', line 38

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