Method: ZohoHub::ValidationError#initialize

Defined in:
lib/zoho_hub/with_validations.rb

#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