Exception: MassEncryption::BatchEncryptionError
- Inherits:
-
StandardError
- Object
- StandardError
- MassEncryption::BatchEncryptionError
- Defined in:
- lib/mass_encryption/batch_encryption_error.rb
Instance Attribute Summary collapse
-
#errors_by_record ⇒ Object
readonly
Returns the value of attribute errors_by_record.
Instance Method Summary collapse
-
#initialize(errors_by_record) ⇒ BatchEncryptionError
constructor
A new instance of BatchEncryptionError.
Constructor Details
#initialize(errors_by_record) ⇒ BatchEncryptionError
Returns a new instance of BatchEncryptionError.
4 5 6 7 8 |
# File 'lib/mass_encryption/batch_encryption_error.rb', line 4 def initialize(errors_by_record) @errors_by_record = errors_by_record = errors_by_record.collect { |record, error| "[#{record.class}:#{record.id}] #{error.inspect}" }.join(", ") super() end |
Instance Attribute Details
#errors_by_record ⇒ Object (readonly)
Returns the value of attribute errors_by_record.
2 3 4 |
# File 'lib/mass_encryption/batch_encryption_error.rb', line 2 def errors_by_record @errors_by_record end |