Method: Atom::HTTP#put_atom_entry
- Defined in:
- lib/atom/http.rb
#put_atom_entry(entry, url = entry.edit_url) ⇒ Object
PUT an Atom::Entry to a URL
217 218 219 220 221 222 |
# File 'lib/atom/http.rb', line 217 def put_atom_entry(entry, url = entry.edit_url) raise "Cowardly refusing to PUT a non-Atom::Entry (#{entry.class})" unless entry.is_a? Atom::Entry headers = {"Content-Type" => "application/atom+xml" } put(url, entry.to_s, headers) end |