Class: AWS::S3::AccessControlList::GrantBuilder
- Inherits:
-
Object
- Object
- AWS::S3::AccessControlList::GrantBuilder
- Defined in:
- lib/aws/s3/access_control_list.rb
Instance Method Summary collapse
-
#initialize(acl, grant) ⇒ GrantBuilder
constructor
A new instance of GrantBuilder.
-
#to(grantee) ⇒ Object
Specifies the grantee.
Constructor Details
#initialize(acl, grant) ⇒ GrantBuilder
Returns a new instance of GrantBuilder.
213 214 215 216 |
# File 'lib/aws/s3/access_control_list.rb', line 213 def initialize(acl, grant) @acl = acl @grant = grant end |
Instance Method Details
#to(grantee) ⇒ Object
Specifies the grantee.
223 224 225 226 |
# File 'lib/aws/s3/access_control_list.rb', line 223 def to(grantee) @grant.grantee = grantee @acl.grants << @grant end |