Class: MuchRails::Action::SendFileResult

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

Overview

MuchRails::Action::SendFileResult is a command result for the ‘send_file` 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(*send_file_args) ⇒ SendFileResult

Returns a new instance of SendFileResult.



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

def initialize(*send_file_args)
  super(:send_file, *send_file_args)
end

Instance Method Details

#send_file_argsObject



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

def send_file_args
  command_args
end