Class: RAWS::S3::ACL::Group

Inherits:
Grant
  • Object
show all
Defined in:
lib/raws/s3/acl.rb

Direct Known Subclasses

AllUsers, AuthenticatedUsers

Instance Attribute Summary

Attributes inherited from Grant

#permission

Instance Method Summary collapse

Methods inherited from Grant

#initialize

Constructor Details

This class inherits a constructor from RAWS::S3::ACL::Grant

Instance Method Details

#to_xmlObject



73
74
75
76
77
78
79
80
81
82
83
84
# File 'lib/raws/s3/acl.rb', line 73

def to_xml
  '<Grant>' <<
    '<Grantee' <<
    ' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"' <<
    ' xsi:type="Group">' <<
      "<URI>http://acs.amazonaws.com/groups/global/#{
        self.class.name.split('::').last
      }</URI>" <<
    '</Grantee>' <<
    super <<
  '</Grant>'
end