Exception: RackWebDAV::HTTPStatus::Status
- Inherits:
-
Exception
- Object
- Exception
- RackWebDAV::HTTPStatus::Status
- Defined in:
- lib/rack-webdav/http_status.rb
Class Attribute Summary collapse
-
.code ⇒ Object
Returns the value of attribute code.
-
.reason_phrase ⇒ Object
Returns the value of attribute reason_phrase.
Class Method Summary collapse
- .status_line ⇒ Object
-
.to_i ⇒ Object
Returns the value of attribute code.
Instance Method Summary collapse
Class Attribute Details
.code ⇒ Object
Returns the value of attribute code.
8 9 10 |
# File 'lib/rack-webdav/http_status.rb', line 8 def code @code end |
.reason_phrase ⇒ Object
Returns the value of attribute reason_phrase.
8 9 10 |
# File 'lib/rack-webdav/http_status.rb', line 8 def reason_phrase @reason_phrase end |
Class Method Details
.status_line ⇒ Object
11 12 13 |
# File 'lib/rack-webdav/http_status.rb', line 11 def status_line "#{code} #{reason_phrase}" end |
.to_i ⇒ Object
Returns the value of attribute code.
9 10 11 |
# File 'lib/rack-webdav/http_status.rb', line 9 def code @code end |
Instance Method Details
#code ⇒ Object
17 18 19 |
# File 'lib/rack-webdav/http_status.rb', line 17 def code self.class.code end |
#reason_phrase ⇒ Object
21 22 23 |
# File 'lib/rack-webdav/http_status.rb', line 21 def reason_phrase self.class.reason_phrase end |
#status_line ⇒ Object
25 26 27 |
# File 'lib/rack-webdav/http_status.rb', line 25 def status_line self.class.status_line end |
#to_i ⇒ Object
29 30 31 |
# File 'lib/rack-webdav/http_status.rb', line 29 def to_i self.class.to_i end |