Class: Calligraphy::Get
- Inherits:
-
WebDavRequest
- Object
- WebDavRequest
- Calligraphy::Get
- Defined in:
- lib/calligraphy/web_dav_request/get.rb
Overview
Responsible for retrieving whatever information is identified by the request.
Instance Attribute Summary
Attributes inherited from WebDavRequest
#headers, #request, #resource, #response
Instance Method Summary collapse
-
#execute(head: false) ⇒ Object
Executes the WebDAV request for a particular resource.
Methods inherited from WebDavRequest
Constructor Details
This class inherits a constructor from Calligraphy::WebDavRequest
Instance Method Details
#execute(head: false) ⇒ Object
Executes the WebDAV request for a particular resource.
8 9 10 11 12 13 14 15 16 |
# 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 |