class MSS::S3::AccessControlList::Permission
Represents the permission being granted in a Grant
object. Typically you will not need to construct an instance of this class directly. @see Grant#permission
Attributes
name[R]
The permission expressed as a symbol following Ruby conventions. For example, S3's FULL_CONTROL permission will be returned as `:full_control`.
Public Class Methods
new(name)
click to toggle source
@api private
# File lib/mss/s3/access_control_list.rb, line 166 def initialize(name) raise "expected string or symbol" unless name.respond_to?(:to_str) or name.respond_to?(:to_sym) @name = name.to_sym end
Public Instance Methods
body_xml()
click to toggle source
# File lib/mss/s3/access_control_list.rb, line 172 def body_xml name.to_s.upcase end