Class: MuchRails::Action::RedirectToResult

Inherits:
BaseCommandResult show all
Defined in:
lib/much-rails/action/redirect_to_result.rb

Overview

MuchRails::Action::RedirectToResult is a command result for the ‘redirect_to` controller response command.

Instance Attribute Summary

Attributes inherited from BaseCommandResult

#command_args, #command_name

Instance Method Summary collapse

Methods inherited from BaseCommandResult

#execute_block

Methods inherited from BaseResult

#execute_block

Constructor Details

#initialize(*redirect_to_args) ⇒ RedirectToResult

Returns a new instance of RedirectToResult.



11
12
13
# File 'lib/much-rails/action/redirect_to_result.rb', line 11

def initialize(*redirect_to_args)
  super(:redirect_to, *redirect_to_args)
end

Instance Method Details

#redirect_to_argsObject



15
16
17
# File 'lib/much-rails/action/redirect_to_result.rb', line 15

def redirect_to_args
  command_args
end