vendor/bundle/ruby/1.8/gems/aws-2.5.6/lib/s3/grantee.rb
# A bucket or a key the grantee has an access to.
A bucket or a key the grantee has an access to.
A bucket or a key the grantee has an access to .
def to_xml 
      id_str = @id[/^http/] ? "<URI>#{@id}</URI>" : "<ID>#{@id}</ID>"
      grants = ''
      @perms.each do |perm|
        grants << "<Grant>" +
            "<Grantee xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " +
            "xsi:type=\"#{type}\">#{id_str}</Grantee>" +
            "<Permission>#{perm}</Permission>" +
            "</Grant>"
      end
      grants
    end
def to_xml id_str = @id [ / ^http / ] ? "<URI>#{@id}</URI>" : "<ID>#{@id}</ID>" grants = '' @perms . each do | perm | grants << "<Grant>" + "<Grantee xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " + "xsi:type=\"#{type}\">#{id_str}</Grantee>" + "<Permission>#{perm}</Permission>" + "</Grant>" end grants end
A bucket or a key the grantee has an access to.
A bucket or a key the grantee has an access to .
# :nodoc: