Class: Calligraphy::WebDavRequest
- Inherits:
-
Object
- Object
- Calligraphy::WebDavRequest
- Defined in:
- lib/calligraphy/web_dav_request/web_dav_request.rb
Overview
Base class for WebDavRequests.
‘WebDavRequest` exposes the `request` method, which is used by the `WebDavRequestsController` to execute the WebDAV request for a particular resource. This class also provides private methods for accessing the request body, setting response headers, and creating XML responses.
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#resource ⇒ Object
Returns the value of attribute resource.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#execute ⇒ Object
Executes the WebDAV request for a particular resource.
-
#initialize(headers:, request:, response:, resource:) ⇒ WebDavRequest
constructor
:nodoc:.
Constructor Details
#initialize(headers:, request:, response:, resource:) ⇒ WebDavRequest
:nodoc:
15 16 17 18 19 20 |
# File 'lib/calligraphy/web_dav_request/web_dav_request.rb', line 15 def initialize(headers:, request:, response:, resource:) @headers = headers @request = request @response = response @resource = resource end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
12 13 14 |
# File 'lib/calligraphy/web_dav_request/web_dav_request.rb', line 12 def headers @headers end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
12 13 14 |
# File 'lib/calligraphy/web_dav_request/web_dav_request.rb', line 12 def request @request end |
#resource ⇒ Object
Returns the value of attribute resource.
11 12 13 |
# File 'lib/calligraphy/web_dav_request/web_dav_request.rb', line 11 def resource @resource end |
#response ⇒ Object
Returns the value of attribute response.
11 12 13 |
# File 'lib/calligraphy/web_dav_request/web_dav_request.rb', line 11 def response @response end |
Instance Method Details
#execute ⇒ Object
Executes the WebDAV request for a particular resource.
23 24 25 |
# File 'lib/calligraphy/web_dav_request/web_dav_request.rb', line 23 def execute raise NotImplemented end |