Exception: Rackful::HTTP202Accepted
- Inherits:
-
HTTPStatus
- Object
- RuntimeError
- HTTPStatus
- Rackful::HTTP202Accepted
- Defined in:
- gems/rackful-0.1.1/lib/rackful_http_status.rb,
gems/rackful-0.1.1.orig/lib/rackful_http_status.rb
Overview
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)
-
- (HTTP202Accepted) initialize(location = nil)
constructor
A new instance of HTTP202Accepted.
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
- (HTTP202Accepted) initialize(location = nil)
A new instance of HTTP202Accepted
139 140 141 142 143 144 145 146 147 148 149 150 |
# File 'gems/rackful-0.1.1/lib/rackful_http_status.rb', line 139 def initialize location = nil if location super( 202, '', { :Job status location:' => Path.new(locations), 'Location' => locations } ) else super 202 end end |