class Cuprum::Collections::Command
Abstract base class for Cuprum::Collection commands.
Private Instance Methods
handle_invalid_parameters(errors:, method_name:)
click to toggle source
Calls superclass method
# File lib/cuprum/collections/command.rb, line 16 def handle_invalid_parameters(errors:, method_name:) return super unless method_name == :call error = Cuprum::Collections::Errors::InvalidParameters.new( command: self, errors: errors ) failure(error) end