Class: Nextcloud::OcsApi
Direct Known Subclasses
Nextcloud::Ocs::App, Nextcloud::Ocs::FileSharingApi, Nextcloud::Ocs::Group, Nextcloud::Ocs::User
Instance Method Summary collapse
-
#app(appid = nil) ⇒ Object
Initiates App class.
-
#file_sharing ⇒ Object
Initiates File Sharing class.
-
#group(groupid = nil) ⇒ Object
Initiates Group class.
-
#user(userid = nil) ⇒ Object
Initiates User class.
Methods inherited from Api
#initialize, #ocs, #request, #webdav
Constructor Details
This class inherits a constructor from Nextcloud::Api
Instance Method Details
#app(appid = nil) ⇒ Object
Initiates App class
23 24 25 |
# File 'lib/nextcloud/ocs_api.rb', line 23 def app(appid = nil) Ocs::App.new(self, appid) end |
#file_sharing ⇒ Object
Initiates File Sharing class
30 31 32 |
# File 'lib/nextcloud/ocs_api.rb', line 30 def file_sharing Ocs::FileSharingApi.new(url: @url, username: @username, password: @password) end |