Class: NextcloudClient::OcsApi
- Defined in:
- lib/nextcloud-client/ocs_api.rb
Direct Known Subclasses
NextcloudClient::Ocs::App, NextcloudClient::Ocs::FileSharingApi, NextcloudClient::Ocs::Group, NextcloudClient::Ocs::GroupFolder, NextcloudClient::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.
-
#group_folder ⇒ Object
Initiates Group Folder class.
-
#user(userid = nil) ⇒ Object
Initiates User class.
Methods inherited from Api
#initialize, #ocs, #request, #webdav
Constructor Details
This class inherits a constructor from NextcloudClient::Api
Instance Method Details
#app(appid = nil) ⇒ Object
Initiates App class
23 24 25 |
# File 'lib/nextcloud-client/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-client/ocs_api.rb', line 30 def file_sharing Ocs::FileSharingApi.new(url: @url, username: @username, password: @password) end |
#group(groupid = nil) ⇒ Object
Initiates Group class
15 16 17 |
# File 'lib/nextcloud-client/ocs_api.rb', line 15 def group(groupid = nil) Ocs::Group.new(self, groupid) end |
#group_folder ⇒ Object
Initiates Group Folder class
37 38 39 |
# File 'lib/nextcloud-client/ocs_api.rb', line 37 def group_folder Ocs::GroupFolder.new(url: @url, username: @username, password: @password) end |