Class: StrongerParameters::InvalidValue
- Inherits:
-
Object
- Object
- StrongerParameters::InvalidValue
- Defined in:
- lib/stronger_parameters/errors.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, message) ⇒ InvalidValue
constructor
A new instance of InvalidValue.
Constructor Details
#initialize(value, message) ⇒ InvalidValue
Returns a new instance of InvalidValue.
7 8 9 10 |
# File 'lib/stronger_parameters/errors.rb', line 7 def initialize(value, ) @value = value @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/stronger_parameters/errors.rb', line 5 def @message end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
5 6 7 |
# File 'lib/stronger_parameters/errors.rb', line 5 def value @value end |