Class: WebDAV::Response
- Inherits:
-
Object
- Object
- WebDAV::Response
- Defined in:
- lib/WebDAV/Response.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
6 7 8 |
# File 'lib/WebDAV/Response.rb', line 6 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
6 7 8 |
# File 'lib/WebDAV/Response.rb', line 6 def code @code end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
6 7 8 |
# File 'lib/WebDAV/Response.rb', line 6 def headers @headers end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/WebDAV/Response.rb', line 6 def end |
Instance Method Details
#content_type ⇒ Object
16 17 18 |
# File 'lib/WebDAV/Response.rb', line 16 def content_type headers['Content-Type'] end |
#etag ⇒ Object
12 13 14 |
# File 'lib/WebDAV/Response.rb', line 12 def etag headers['ETag'] end |
#success? ⇒ Boolean
8 9 10 |
# File 'lib/WebDAV/Response.rb', line 8 def success? code < 400 end |