Class: Calligraphy::Proppatch
- Inherits:
-
WebDavRequest
- Object
- WebDavRequest
- Calligraphy::Proppatch
- Includes:
- XML::Utils
- Defined in:
- lib/calligraphy/proppatch.rb
Instance Attribute Summary
Attributes inherited from WebDavRequest
#headers, #resource, #response
Instance Method Summary collapse
Methods included from XML::Utils
Methods inherited from WebDavRequest
Constructor Details
This class inherits a constructor from Calligraphy::WebDavRequest
Instance Method Details
#request ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/calligraphy/proppatch.rb', line 5 def request return :locked if @resource.locked_to_user? @headers xml = xml_for body: body, node: 'propertyupdate' return :bad_request if xml == :bad_request actions = @resource.proppatch xml builder = xml_builder xml_res = builder.proppatch_res @resource.full_request_path, actions set_xml_content_type return :multi_status, xml_res end |