Module: UberS3::Operation::Object::AccessPolicy::InstanceMethods

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

Instance Method Summary collapse

Instance Method Details

#access=(access) ⇒ Object



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

def access=(access)
  valid_values = [:private, :public_read, :public_read_write, :authenticated_read]

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