Module: UberS3::Operation::Object::StorageClass::InstanceMethods

Defined in:
lib/uber-s3/operation/object/storage_class.rb

Instance Method Summary collapse

Instance Method Details

#storage_class=(storage_class) ⇒ Object



17
18
19
20
21
22
23
24
25
# File 'lib/uber-s3/operation/object/storage_class.rb', line 17

def storage_class=(storage_class)
  valid_values = [:standard, :reduced_redundancy]

  if valid_values.include?(storage_class)
    @storage_class = storage_class
  else
    raise "Invalid storage_class value"
  end
end