Class: AWS::S3::ACL::Grant::Builder
- Inherits:
-
XmlGenerator
- Object
- String
- XmlGenerator
- AWS::S3::ACL::Grant::Builder
- Defined in:
- lib/aws/s3/acl.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#grantee ⇒ Object
readonly
Returns the value of attribute grantee.
-
#permission ⇒ Object
readonly
Returns the value of attribute permission.
Attributes inherited from XmlGenerator
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(permission, grantee) ⇒ Builder
constructor
A new instance of Builder.
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(, grantee) @permission = @grantee = grantee super() end |
Instance Attribute Details
#grantee ⇒ Object (readonly)
Returns the value of attribute grantee.
346 347 348 |
# File 'lib/aws/s3/acl.rb', line 346 def grantee @grantee end |
#permission ⇒ Object (readonly)
Returns the value of attribute permission.
346 347 348 |
# File 'lib/aws/s3/acl.rb', line 346 def @permission end |
Instance Method Details
#build ⇒ Object
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 end end |