Class: ActiveFunction::Functions::StrongParameters::Parameters::ParameterMissingError

Inherits:
Error
  • Object
show all
Defined in:
lib/active_function/functions/strong_parameters.rb

Constant Summary collapse

MESSAGE_TEMPLATE =
"Missing parameter: %s"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(param) ⇒ ParameterMissingError

Returns a new instance of ParameterMissingError.



38
39
40
# File 'lib/active_function/functions/strong_parameters.rb', line 38

def initialize(param)
  MESSAGE_TEMPLATE % param
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



36
37
38
# File 'lib/active_function/functions/strong_parameters.rb', line 36

def message
  @message
end