Class: ActiveFunction::Functions::StrongParameters::Parameters::ParameterMissingError
- Inherits:
-
Error
- Object
- ActiveFunction::Functions::StrongParameters::Parameters::ParameterMissingError
- Defined in:
- lib/active_function/functions/strong_parameters.rb
Constant Summary collapse
- MESSAGE_TEMPLATE =
"Missing parameter: %s"
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(param) ⇒ ParameterMissingError
constructor
A new instance of ParameterMissingError.
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
#message ⇒ Object (readonly)
Returns the value of attribute message.
36 37 38 |
# File 'lib/active_function/functions/strong_parameters.rb', line 36 def @message end |