Method: OCI::ObjectStorage::Models::ObjectVersionCollection#initialize

Defined in:
lib/oci/object_storage/models/object_version_collection.rb

#initialize(attributes = {}) ⇒ ObjectVersionCollection

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):



51
52
53
54
55
56
57
58
59
60
# File 'lib/oci/object_storage/models/object_version_collection.rb', line 51

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

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