module AWS::S3::ACLOptions
def format_grants acl_hash
-
(Hash)- Returns a hash of grant options suitable for
Parameters:
-
acl_hash(Hash) --
def format_grants acl_hash grants = {} acl_hash.each_pair do |grant,grantees| grantees = [grantees] unless grantees.is_a?(Array) grants[grant] = grantees.map{|g| format_grantee(g) }.join(', ') end grants end