Exception: RubyPitaya::UnpermittedParameters

Inherits:
IndexError
  • Object
show all
Defined in:
lib/rubypitaya/core/parameters.rb,
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rubypitaya-3.12.1/lib/rubypitaya/core/parameters.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ UnpermittedParameters

Returns a new instance of UnpermittedParameters.



48
49
50
51
# File 'lib/rubypitaya/core/parameters.rb', line 48

def initialize(params)
  @params = params
  super("found unpermitted parameters: #{params.join(", ")}")
end

Instance Attribute Details

#paramsObject (readonly)

Returns the value of attribute params.



46
47
48
# File 'lib/rubypitaya/core/parameters.rb', line 46

def params
  @params
end