Method: OCI::ObjectStorage::Models::ObjectLifecyclePolicy#to_hash
- Defined in:
- lib/oci/object_storage/models/object_lifecycle_policy.rb
#to_hash ⇒ Hash
Returns the object in the form of hash
139 140 141 142 143 144 145 146 147 148 |
# File 'lib/oci/object_storage/models/object_lifecycle_policy.rb', line 139 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end |