You are viewing documentation for version 1 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: AWS::S3::AccessControlList::GrantBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/aws/s3/access_control_list.rb

Instance Method Summary collapse

Instance Method Details

#to(grantee) ⇒ Object

Specifies the grantee.

Parameters:

  • grantee (Grantee or Hash)

    A Grantee object or hash; for example:

    acl.grant(:full_control).to(:amazon_customer_email => "foo@example.com")
    


237
238
239
240
# File 'lib/aws/s3/access_control_list.rb', line 237

def to(grantee)
  @grant.grantee = grantee
  @acl.grants << @grant
end