# File lib/braintree/errors.rb, line 10 def each(&block) @errors.deep_errors.each(&block) end
# File lib/braintree/errors.rb, line 14 def for(scope) @errors.for(scope) end
Returns the total number of validation errors at all levels of nesting. For example, if creating a customer with a credit card and a billing address, and each of the customer, credit card, and billing address has 1 error, this method will return 3.
# File lib/braintree/errors.rb, line 25 def size @errors.deep_size end
Generated with the Darkfish Rdoc Generator 2.