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

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

Overview

:nodoc:

Instance Attribute Summary collapse

Attributes inherited from XmlGenerator

#xml

Instance Method Summary collapse

Methods inherited from String

#previous, #previous!, #remove_extended, #remove_extended!, #tap, #to_header, #underscore, #valid_utf8?

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