Method: Atom::Tools#entries_to_http
- Defined in:
- lib/atom/tools.rb
#entries_to_http(entries, url, http = Atom::HTTP.new) ⇒ Object
POSTs an Array of Atom::Entrys to an Atom Collection
34 35 36 37 38 |
# File 'lib/atom/tools.rb', line 34 def entries_to_http entries, url, http = Atom::HTTP.new coll = Atom::Collection.new url, http entries.each { |entry| coll.post! entry } end |