Exception: Rackful::HTTPSimpleStatus Abstract
- Inherits:
-
HTTPStatus
- Object
- RuntimeError
- HTTPStatus
- Rackful::HTTPSimpleStatus
- Defined in:
- gems/rackful-0.1.1/lib/rackful_http_status.rb,
gems/rackful-0.1.1.orig/lib/rackful_http_status.rb
Overview
This class is abstract.
Base class for HTTP status codes with only a simple text message, or no message at all.
Direct Known Subclasses
HTTP400BadRequest, HTTP403Forbidden, HTTP404NotFound, HTTP409Conflict, HTTP410Gone, HTTP411LengthRequired, HTTP422UnprocessableEntity, HTTP501NotImplemented, HTTP503ServiceUnavailable
Instance Attribute Summary
Attributes inherited from HTTPStatus
#headers, #status, #to_rackful
Attributes included from Resource
#get_etag, #get_last_modified, #path
Instance Method Summary (collapse)
-
- (HTTPSimpleStatus) initialize(message = nil)
constructor
A new instance of HTTPSimpleStatus.
Methods included from Resource
#default_headers, #destroy, #do_METHOD, #empty?, #http_DELETE, #http_GET, #http_HEAD, #http_OPTIONS, #http_PUT, #http_method, #http_methods, included, #requested?, #serializer, #title, #to_rackful, #to_struct
Constructor Details
- (HTTPSimpleStatus) initialize(message = nil)
A new instance of HTTPSimpleStatus
95 96 97 98 99 |
# File 'gems/rackful-0.1.1/lib/rackful_http_status.rb', line 95 def initialize = nil /HTTP(\d\d\d)\w+\z/ === self.class.to_s status = $1.to_i super( status, ) end |