Class: NextcloudClient::WebdavApi
- Defined in:
- lib/nextcloud-client/webdav_api.rb
Direct Known Subclasses
Constant Summary collapse
- DAV_URL =
Remote end of WebDAV API
"remote.php/dav".freeze
Instance Method Summary collapse
-
#directory ⇒ Object
Initiates WebDAV Directory class.
-
#initialize(args) ⇒ WebdavApi
constructor
Initializes a WebDAV API.
Methods inherited from Api
Constructor Details
#initialize(args) ⇒ WebdavApi
Initializes a WebDAV API
9 10 11 12 |
# File 'lib/nextcloud-client/webdav_api.rb', line 9 def initialize(args) super @url = URI(@url.scheme + "://" + @url.host + "/" + DAV_URL) end |
Instance Method Details
#directory ⇒ Object
Initiates WebDAV Directory class
17 18 19 |
# File 'lib/nextcloud-client/webdav_api.rb', line 17 def directory Webdav::Directory.new(self) end |