Sha256: 33dbd1f8c0fb6e6a6ba588798626757dfd365fed6100505411f0055865af1178

Contents?: true

Size: 687 Bytes

Versions: 4

Compression:

Stored size: 687 Bytes

Contents

require 'rubygems'
require 'vortex_client'
include Vortex

vortex = Vortex::Connection.new("https://vortex-dav.uio.no/")
vortex.cd('/brukere/thomasfl/events/')

# Create standard folder
collection = Collection.new(:url => 'my-collection', :title => 'My articles')
path = vortex.create(collection)
puts "Created folder: " + path

# Create a folder that lists articles
collection = ArticleListingCollection.new(:url => 'my-collection', :title => 'My articles')
path = vortex.create(collection)
puts "Created folder: " + path

# Create a folder that lists events
collection = EventListingCollection.new(:title => 'My events')
path = vortex.create(collection)
puts "Created folder: " + path

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
vortex_client-0.7.3 examples/create_collection.rb
vortex_client-0.7.2 examples/create_collection.rb
vortex_client-0.7.0 examples/create_collection.rb
vortex_client-0.6.0 examples/create_collection.rb