Exception: JSONAPI::Errors::ParameterNotAllowed
- Inherits:
-
JSONAPI::Error
- Object
- StandardError
- JSONAPI::Error
- JSONAPI::Errors::ParameterNotAllowed
- Defined in:
- lib/json_api/errors/parameter_not_allowed.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(params = []) ⇒ ParameterNotAllowed
constructor
A new instance of ParameterNotAllowed.
Constructor Details
#initialize(params = []) ⇒ ParameterNotAllowed
Returns a new instance of ParameterNotAllowed.
8 9 10 11 |
# File 'lib/json_api/errors/parameter_not_allowed.rb', line 8 def initialize(params = []) @params = params super("Parameter not allowed: #{Array(params).join(', ')}") end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
6 7 8 |
# File 'lib/json_api/errors/parameter_not_allowed.rb', line 6 def params @params end |