class Calligraphy::Unlock
Responsible for removing the lock identified by the lock token in the request header.
Public Instance Methods
execute()
click to toggle source
Executes the WebDAV request for a particular resource.
# 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
Private Instance Methods
lock_token_header()
click to toggle source
# File lib/calligraphy/web_dav_request/unlock.rb, line 16 def lock_token_header @headers['Lock-Token'].gsub Calligraphy::LOCK_TOKEN_ANGLE_REGEX, '' end