class Rampart::FailEvent
Public Class Methods
new(message="Not Authorized")
click to toggle source
# File lib/rampart/events/fail_event.rb, line 5 def initialize(message="Not Authorized") @message = message end
Public Instance Methods
halt?()
click to toggle source
# File lib/rampart/events/fail_event.rb, line 9 def halt? true end
success?()
click to toggle source
# File lib/rampart/events/fail_event.rb, line 13 def success? false end
to_truple()
click to toggle source
# File lib/rampart/events/fail_event.rb, line 17 def to_truple response = Response.new response.write(@message) response.status = 401 response.finish end