Class: Yandex::Disk::Client::Request::Private

Inherits:
Object
  • Object
show all
Defined in:
lib/yandex/disk/client/request/private.rb

Constant Summary collapse

BODY =
'<propertyupdate xmlns="DAV:">
  <set>
    <prop>
      <public_url xmlns="urn:yandex:disk:meta" />
    </prop>
  </set>
</propertyupdate>'
HEADERS =
{
}

Instance Method Summary collapse

Constructor Details

#initialize(http, path) ⇒ Private

Returns a new instance of Private.



13
14
15
16
# File 'lib/yandex/disk/client/request/private.rb', line 13

def initialize http, path
  @http = http
  @path = path
end

Instance Method Details

#performObject



18
19
20
21
# File 'lib/yandex/disk/client/request/private.rb', line 18

def perform
  @http.run_request :proppatch, @path, BODY, HEADERS
  true
end