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!, #to_header, #underscore

Constructor Details

#initialize(permission, grantee) ⇒ Builder

Returns a new instance of Builder.



343
344
345
346
347
# File 'lib/aws/s3/acl.rb', line 343

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

Instance Attribute Details

#granteeObject (readonly)

Returns the value of attribute grantee.



341
342
343
# File 'lib/aws/s3/acl.rb', line 341

def grantee
  @grantee
end

#permissionObject (readonly)

Returns the value of attribute permission.



341
342
343
# File 'lib/aws/s3/acl.rb', line 341

def permission
  @permission
end

Instance Method Details

#buildObject



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

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