class Dandy::HandleErrors
Public Class Methods
new(container, dandy_error)
click to toggle source
# File lib/dandy/base/handle_errors.rb, line 3 def initialize(container, dandy_error) @container = container @dandy_error = dandy_error end
Protected Instance Methods
set_http_status(status_code)
click to toggle source
# File lib/dandy/base/handle_errors.rb, line 9 def set_http_status(status_code) @container .register_instance(status_code, :dandy_status) .using_lifetime(:scope) .bound_to(:dandy_request) end