Module: Nextcloud

Defined in:
lib/nextcloud.rb,
lib/nextcloud/api.rb,
lib/nextcloud/ocs/app.rb,
lib/nextcloud/ocs_api.rb,
lib/nextcloud/ocs/user.rb,
lib/nextcloud/ocs/group.rb,
lib/nextcloud/webdav_api.rb,
lib/nextcloud/models/user.rb,
lib/nextcloud/errors/nextcloud.rb,
lib/nextcloud/models/directory.rb,
lib/nextcloud/webdav/directory.rb,
lib/nextcloud/helpers/nextcloud.rb,
lib/nextcloud/version/nextcloud.rb,
lib/nextcloud/helpers/properties.rb,
lib/nextcloud/ocs/file_sharing_api.rb

Overview

Namespace for Nextcloud OCS API communication

Defined Under Namespace

Modules: Errors, Helpers, Models, Ocs, Version, Webdav Classes: Api, OcsApi, WebdavApi

Class Method Summary collapse

Class Method Details

.ocs(args) ⇒ Object

Access to OCS API from base instance

Parameters:

  • args (Hash)

    authentication credentials.

Options Hash (args):

  • :url (String)

    Nextcloud instance URL

  • :username (String)

    Nextcloud instance administrator username

  • :password (String)

    Nextcloud instance administrator password


33
34
35
# File 'lib/nextcloud.rb', line 33

def ocs(args)
  OcsApi.new(args)
end

.webdav(args) ⇒ Object

Access to WebDAV API from base instance

Parameters:

  • args (Hash)

    authentication credentials.

Options Hash (args):

  • :url (String)

    Nextcloud instance URL

  • :username (String)

    Nextcloud instance administrator username

  • :password (String)

    Nextcloud instance administrator password


43
44
45
# File 'lib/nextcloud.rb', line 43

def webdav(args)
  WebdavApi.new(args)
end