Sha256: 15d47f1d83734edb5e145b619692029474cc91debda0b9b1b3fd3745372d73e3

Contents?: true

Size: 731 Bytes

Versions: 13

Compression:

Stored size: 731 Bytes

Contents

require 'rubygems'
require 'vortex_client'
include Vortex

vortex = Vortex::Connection.new("https://vortex-dav.uio.no/")
vortex.cd('/brukere/thomasfl/events/')
event = HtmlEvent.new(:title => "My Sample Event 1",
                      :introduction => "Sample event introduction",
                      :body => "<p>Hello world</p>",
                      :startDate => "19.06.2010 17:56",
                      :endDate =>  "19.06.2010 19:00",
                      :location => "Forskningsveien 3B",
                      :mapUrl => "http://maps.google.com/123",
                      :tags => ["vortex","testing","ruby"],
                      :publishedDate => Time.now )
path = vortex.publish(event)
puts "published " + path

Version data entries

13 entries across 12 versions & 1 rubygems

Version Path
vortex_client-0.7.3 examples/publish_event.rb
vortex_client-0.7.2 examples/publish_event.rb
vortex_client-0.7.0 examples/publish_event.rb
vortex_client-0.6.0 examples/publish_event.rb
vortex_client-0.5.9 examples/publish_event.rb
vortex_client-0.5.8 examples/publish_event.rb
vortex_client-0.5.8 examples/publish_event_flymake.rb
vortex_client-0.5.6 publish_event.rb
vortex_client-0.5.5 publish_event.rb
vortex_client-0.5.4 publish_event.rb
vortex_client-0.5.3 examples/publish_event.rb
vortex_client-0.5.2 examples/publish_event.rb
vortex_client-0.5.1 examples/publish_event.rb