Class: Calligraphy::Unlock

Inherits:
WebDavRequest show all
Defined in:
lib/calligraphy/web_dav_request/unlock.rb

Overview

Responsible for removing the lock identified by the lock token in the request header.

Instance Attribute Summary

Attributes inherited from WebDavRequest

#headers, #request, #resource, #response

Instance Method Summary collapse

Methods inherited from WebDavRequest

#initialize

Constructor Details

This class inherits a constructor from Calligraphy::WebDavRequest

Instance Method Details

#executeObject

Executes the WebDAV request for a particular resource.



8
9
10
11
12
# File 'lib/calligraphy/web_dav_request/unlock.rb', line 8

def execute
  return :bad_request if @headers['Lock-Token'].nil?

  @resource.unlock lock_token_header
end