Class: Useless::Doc::UI::Godel::Response
- Inherits:
-
Object
- Object
- Useless::Doc::UI::Godel::Response
- Extended by:
- Forwardable
- Defined in:
- lib/useless/doc/ui/godel.rb
Instance Method Summary collapse
- #headers? ⇒ Boolean
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
- #status_message ⇒ Object
Constructor Details
#initialize(response) ⇒ Response
Returns a new instance of Response.
134 135 136 |
# File 'lib/useless/doc/ui/godel.rb', line 134 def initialize(response) @response = response end |
Instance Method Details
#headers? ⇒ Boolean
142 143 144 |
# File 'lib/useless/doc/ui/godel.rb', line 142 def headers? headers.any? end |
#status_message ⇒ Object
138 139 140 |
# File 'lib/useless/doc/ui/godel.rb', line 138 def ::Rack::Utils::HTTP_STATUS_CODES[code] end |