class GoogleDrive::Acl
Public Instance Methods
push(entry)
click to toggle source
# File lib/mobilize-base/extensions/google_drive/acl.rb, line 14 def push(entry) #do not send email notifications entry = AclEntry.new(entry) if entry.is_a?(Hash) url_suffix = ((@acls_feed_url.index("?") ? "&" : "?") + "send-notification-emails=false") header = {"GData-Version" => "3.0", "Content-Type" => "application/atom+xml"} doc = @session.request(:post, "#{@acls_feed_url}#{url_suffix}", :data => entry.to_xml(), :header => header, :auth => :writely) entry.params = entry_to_params(doc.root) @acls.push(entry) return entry end