Exception: Grape::Exceptions::ValidationError
- Defined in:
- lib/grape/exceptions/validation_error.rb
Instance Attribute Summary collapse
-
#param ⇒ Object
Returns the value of attribute param.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ ValidationError
constructor
A new instance of ValidationError.
Methods inherited from Base
Constructor Details
#initialize(args = {}) ⇒ ValidationError
Returns a new instance of ValidationError.
8 9 10 11 |
# File 'lib/grape/exceptions/validation_error.rb', line 8 def initialize(args = {}) @param = args[:param].to_s if args.has_key? :param super end |
Instance Attribute Details
#param ⇒ Object
Returns the value of attribute param.
6 7 8 |
# File 'lib/grape/exceptions/validation_error.rb', line 6 def param @param end |