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

.new(args) ⇒ Object

Allow base initializing

Returns:

  • (Object)

    Api



30
31
32
# File 'lib/nextcloud.rb', line 30

def new(args)
  Api.new(args)
end

.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



40
41
42
# File 'lib/nextcloud.rb', line 40

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



50
51
52
# File 'lib/nextcloud.rb', line 50

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