Class: AWS::S3::ACL::Grant::Builder
- Inherits:
-
XmlGenerator
- Object
- XmlGenerator
- AWS::S3::ACL::Grant::Builder
- Defined in:
- lib/aws-matt/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.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(permission, grantee) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize(permission, grantee) ⇒ Builder
Returns a new instance of Builder.
348 349 350 351 352 |
# File 'lib/aws-matt/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-matt/s3/acl.rb', line 346 def grantee @grantee end |
#permission ⇒ Object (readonly)
Returns the value of attribute permission.
346 347 348 |
# File 'lib/aws-matt/s3/acl.rb', line 346 def @permission end |
Instance Method Details
#build ⇒ Object
354 355 356 357 358 359 |
# File 'lib/aws-matt/s3/acl.rb', line 354 def build xml.Grant do xml << grantee.to_xml xml.Permission end end |