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.
181 182 183 |
# File 'lib/useless/doc/ui/godel.rb', line 181 def initialize(response) @response = response end |
Instance Method Details
#headers? ⇒ Boolean
189 190 191 |
# File 'lib/useless/doc/ui/godel.rb', line 189 def headers? headers.any? end |
#status_message ⇒ Object
185 186 187 |
# File 'lib/useless/doc/ui/godel.rb', line 185 def ::Rack::Utils::HTTP_STATUS_CODES[code] end |