class Kingfisher::Redirect
Constants
- DEFAULTS
Attributes
options[R]
path[R]
Public Class Methods
new(to:, **options)
click to toggle source
# File lib/kingfisher/controller.rb, line 14 def initialize(to:, **options) @path = to @options = DEFAULTS.merge(options) end
Public Instance Methods
body()
click to toggle source
# File lib/kingfisher/controller.rb, line 27 def body options[:body] end
headers()
click to toggle source
# File lib/kingfisher/controller.rb, line 23 def headers options[:headers].merge("Location" => path) end
status_code()
click to toggle source
# File lib/kingfisher/controller.rb, line 19 def status_code options[:status_code] end