Sha256: da47ef307a1c83bcf0ee0722366dc40d31b675be8a069580411f22b8f4184308
Contents?: true
Size: 590 Bytes
Versions: 4
Compression:
Stored size: 590 Bytes
Contents
require 'rubygems' require 'vortex_client' vortex = Vortex::Connection.new("https://vortex-dav.uio.no/") vortex.cd('/brukere/thomasfl/nyheter/') article = Vortex::StructuredArticle.new(:title => "Hello world", :introduction => "Short introduction", :body => "<p>Longer body</p>", :publishedDate => Time.now, :author => "Thomas Flemming") path = vortex.publish(article) puts "published " + path # => published https://vortex-dav.uio.no/brukere/thomasfl/nyheter/my-new-title.html
Version data entries
4 entries across 4 versions & 1 rubygems