Exception: Pendragon::MethodNotAllowed
Overview
A class for MethodNotAllowed response
Constant Summary
collapse
- ALLOW =
"Allow".freeze
- COMMA =
", ".freeze
Instance Method Summary
collapse
#call, #initialize
Instance Method Details
#body ⇒ Object
60
61
62
|
# File 'lib/pendragon/error.rb', line 60
def body
@body ||= "Method Not Allowed"
end
|
64
65
66
67
68
69
|
# File 'lib/pendragon/error.rb', line 64
def
||= begin
= super
.merge!(ALLOW => @args.shift.map{|verb| verb.upcase } * COMMA)
end
end
|
#status ⇒ Object
56
57
58
|
# File 'lib/pendragon/error.rb', line 56
def status
@status ||= 405
end
|