class Calligraphy::Get
Responsible for retrieving whatever information is identified by the request.
Public Instance Methods
execute(head: false)
click to toggle source
Executes the WebDAV request for a particular resource.
# File lib/calligraphy/web_dav_request/get.rb, line 8 def execute(head: false) if @resource.readable? return :ok if head [:ok, @resource.read] else :not_found end end