Exception: WEBrick::HTTPStatus::Status
- Inherits:
-
StandardError
- Object
- StandardError
- WEBrick::HTTPStatus::Status
- Defined in:
- lib/webrick/httpstatus.rb
Overview
Root of the HTTP status class hierarchy
Class Attribute Summary collapse
-
.code ⇒ Object
readonly
:nodoc:.
-
.reason_phrase ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#code ⇒ Object
(also: #to_i)
Returns the HTTP status code.
-
#initialize(*args) ⇒ Status
constructor
:nodoc:.
-
#reason_phrase ⇒ Object
Returns the HTTP status description.
Constructor Details
Class Attribute Details
.code ⇒ Object (readonly)
:nodoc:
28 29 30 |
# File 'lib/webrick/httpstatus.rb', line 28 def code @code end |
.reason_phrase ⇒ Object (readonly)
:nodoc:
28 29 30 |
# File 'lib/webrick/httpstatus.rb', line 28 def reason_phrase @reason_phrase end |
Instance Method Details
#code ⇒ Object Also known as: to_i
Returns the HTTP status code
32 |
# File 'lib/webrick/httpstatus.rb', line 32 def code() self::class::code end |
#reason_phrase ⇒ Object
Returns the HTTP status description
35 |
# File 'lib/webrick/httpstatus.rb', line 35 def reason_phrase() self::class::reason_phrase end |