Class: Api::V3::ApplicationController::ParameterValueNotAllowed

Inherits:
ActionController::ParameterMissing
  • Object
show all
Defined in:
app/controllers/api/v3/application_controller.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(param, values) ⇒ ParameterValueNotAllowed

:nodoc:


6
7
8
9
10
# File 'app/controllers/api/v3/application_controller.rb', line 6

def initialize(param, values) # :nodoc:
  @param = param
  @values = values
  super("param: #{param} value only allowed in: #{values}")
end

Instance Attribute Details

#valuesObject (readonly)

Returns the value of attribute values


5
6
7
# File 'app/controllers/api/v3/application_controller.rb', line 5

def values
  @values
end