Exception: Amanuensis::ValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/amanuensis/validatable.rb

Instance Method Summary collapse

Constructor Details

#initialize(klass) ⇒ ValidationError

Returns a new instance of ValidationError.



4
5
6
# File 'lib/amanuensis/validatable.rb', line 4

def initialize(klass)
  @klass = klass
end

Instance Method Details

#messageObject



8
9
10
# File 'lib/amanuensis/validatable.rb', line 8

def message
  "Please make sure you correclty set all the required fields for #{@klass}, read the documentation here: http://alaibe.github.io/amanuensis/"
end