Exception: SmartParams::MissingPropertyException
- Inherits:
-
StandardError
- Object
- StandardError
- SmartParams::MissingPropertyException
- Defined in:
- lib/smart_params/missing_property_exception.rb
Instance Attribute Summary collapse
-
#last ⇒ Object
Returns the value of attribute last.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path:, last:) ⇒ MissingPropertyException
constructor
A new instance of MissingPropertyException.
- #message ⇒ Object
Constructor Details
#initialize(path:, last:) ⇒ MissingPropertyException
Returns a new instance of MissingPropertyException.
8 9 10 11 12 |
# File 'lib/smart_params/missing_property_exception.rb', line 8 def initialize(path:, last:) @path = path @last = last super() end |
Instance Attribute Details
#last ⇒ Object
Returns the value of attribute last.
6 7 8 |
# File 'lib/smart_params/missing_property_exception.rb', line 6 def last @last end |
#path ⇒ Object
Returns the value of attribute path.
5 6 7 |
# File 'lib/smart_params/missing_property_exception.rb', line 5 def path @path end |
Instance Method Details
#message ⇒ Object
14 15 16 |
# File 'lib/smart_params/missing_property_exception.rb', line 14 def "/#{@path.join('/')} is missing from the structure, last node was #{@last.inspect}" end |