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.
169 170 171 |
# File 'lib/useless/doc/ui/godel.rb', line 169 def initialize(response) @response = response end |
Instance Method Details
#headers? ⇒ Boolean
177 178 179 |
# File 'lib/useless/doc/ui/godel.rb', line 177 def headers? headers.any? end |
#status_message ⇒ Object
173 174 175 |
# File 'lib/useless/doc/ui/godel.rb', line 173 def ::Rack::Utils::HTTP_STATUS_CODES[code] end |