Class Braintree::ValidationErrorCollection
In: lib/braintree/validation_error_collection.rb
Parent: Object

Methods

[]   deep_errors   deep_size   each   for   for_index   on   shallow_errors   size  

Included Modules

Enumerable

Public Instance methods

Accesses the error at the given index.

Returns an array of ValidationError objects at this level and all nested levels in the error hierarchy

Iterates over errors at the current level. Nested errors will not be yielded.

Returns a ValidationErrorCollection of errors nested under the given nested_key. Returns nil if there are not any errors nested under the given key.

Returns an array of ValidationError objects on the given attribute.

Returns an array of ValidationError objects at the given level in the error hierarchy

The number of errors at this level. This does not include nested errors.

[Validate]