Class: AWS::S3::ACL::Grant::Builder

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

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(permission, grantee) ⇒ Builder

Returns a new instance of Builder.



348
349
350
351
352
# File 'lib/aws/s3/acl.rb', line 348

def initialize(permission, grantee)
  @permission = permission
  @grantee    = grantee
  super()
end

Instance Attribute Details

#granteeObject (readonly)

Returns the value of attribute grantee.



346
347
348
# File 'lib/aws/s3/acl.rb', line 346

def grantee
  @grantee
end

#permissionObject (readonly)

Returns the value of attribute permission.



346
347
348
# File 'lib/aws/s3/acl.rb', line 346

def permission
  @permission
end

Instance Method Details

#buildObject



354
355
356
357
358
359
# File 'lib/aws/s3/acl.rb', line 354

def build
  xml.Grant do
    xml << grantee.to_xml
    xml.Permission permission
  end
end