module Nextcloud

Main module of Nextcloud API wrapper

See 'nextcloud/ruby/configuration.rb' for more explanation how to set configuration

This is configuration class that allows you to set your config like so:

Nextcloud::Ruby.configure do |config|

config.dav_url     = 'https://mydav.com/x.php'
config.username    = 'jon'
config.password    = 'SuperSecret'
config.directories = [
  'root/folder/name',
  'any/other/folder/name',
  'some/more'
]

end

or

by simply assigning params by themself:

config = Nextcloud::Ruby::Configuration.new config.dav_url = 'mydav.com/x.php' config.username = 'jon' config.password = 'SuperSecret' config.directories = [

'root/folder/name',
'any/other/folder/name',
'some/more'

] Nextcloud::Ruby.configuration = config

Collection of errors used in this library

Every time you want to raise one of these, you just go ahead and do:

raise Nextcloud::Ruby::ConfigNotSet, 'Your param'