Exception: JSONAPI::Errors::ParameterNotAllowed

Inherits:
JSONAPI::Error
  • Object
show all
Defined in:
lib/json_api/errors/parameter_not_allowed.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#paramsObject (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