Exception: ZohoHub::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- ZohoHub::ValidationError
- Defined in:
- lib/zoho_hub/with_validations.rb
Instance Attribute Summary collapse
-
#record ⇒ Object
readonly
Returns the value of attribute record.
Instance Method Summary collapse
-
#initialize(record) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(record) ⇒ ValidationError
Returns a new instance of ValidationError.
59 60 61 62 63 64 |
# File 'lib/zoho_hub/with_validations.rb', line 59 def initialize(record) @record = record errors = @record.errors.join(', ') super(errors) end |
Instance Attribute Details
#record ⇒ Object (readonly)
Returns the value of attribute record.
57 58 59 |
# File 'lib/zoho_hub/with_validations.rb', line 57 def record @record end |