Exception: Tripod::Errors::Validations
- Inherits:
-
StandardError
- Object
- StandardError
- Tripod::Errors::Validations
- Defined in:
- lib/tripod/errors/validations.rb
Overview
Raised when a persistence method ending in ! fails validation. The message will contain the full error messages from the Resource
in question.
Instance Attribute Summary collapse
-
#resource ⇒ Object
(also: #record)
readonly
Returns the value of attribute resource.
Instance Method Summary collapse
-
#initialize(resource) ⇒ Validations
constructor
A new instance of Validations.
Constructor Details
#initialize(resource) ⇒ Validations
Returns a new instance of Validations.
13 14 15 |
# File 'lib/tripod/errors/validations.rb', line 13 def initialize(resource) @resource = resource end |
Instance Attribute Details
#resource ⇒ Object (readonly) Also known as: record
Returns the value of attribute resource.
10 11 12 |
# File 'lib/tripod/errors/validations.rb', line 10 def resource @resource end |