Exception: StrongerParameters::InvalidParameter
- Inherits:
-
StandardError
- Object
- StandardError
- StrongerParameters::InvalidParameter
- Defined in:
- lib/stronger_parameters/errors.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(invalid_value, key) ⇒ InvalidParameter
constructor
A new instance of InvalidParameter.
Constructor Details
#initialize(invalid_value, key) ⇒ InvalidParameter
Returns a new instance of InvalidParameter.
14 15 16 17 18 |
# File 'lib/stronger_parameters/errors.rb', line 14 def initialize(invalid_value, key) @value = invalid_value.value @key = key super(invalid_value.) end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
12 13 14 |
# File 'lib/stronger_parameters/errors.rb', line 12 def key @key end |
#value ⇒ Object
Returns the value of attribute value.
12 13 14 |
# File 'lib/stronger_parameters/errors.rb', line 12 def value @value end |