Exception: Sinatra::Validation::InvalidParameterError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/sinatra/validation.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(result) ⇒ InvalidParameterError

Returns a new instance of InvalidParameterError.



9
10
11
# File 'lib/sinatra/validation.rb', line 9

def initialize(result) 
  @result = result
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



7
8
9
# File 'lib/sinatra/validation.rb', line 7

def result
  @result
end