Class: AWS::S3::AccessControlList::Permission
- Inherits:
-
Object
- Object
- AWS::S3::AccessControlList::Permission
- Includes:
- AWS::S3::ACLObject
- Defined in:
- lib/aws/s3/access_control_list.rb
Overview
Represents the permission being granted in a Grant object. Typically you will not need to construct an instance of this class directly.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
The permission expressed as a symbol following Ruby conventions.
Instance Method Summary collapse
Methods included from AWS::S3::ACLObject
included, #to_s, #to_xml, #valid?, #validate!
Instance Attribute Details
#name ⇒ Object (readonly)
The permission expressed as a symbol following Ruby
conventions. For example, S3's FULL_CONTROL permission
will be returned as :full_control
.
165 166 167 |
# File 'lib/aws/s3/access_control_list.rb', line 165 def name @name end |
Instance Method Details
#body_xml ⇒ Object
174 175 176 |
# File 'lib/aws/s3/access_control_list.rb', line 174 def body_xml name.to_s.upcase end |