Parent

Methods

Included Modules

Class/Module Index [+]

Quicksearch

Braintree::Errors

See www.braintreepayments.com/docs/ruby/general/validation_errors

Public Instance Methods

each(&block) click to toggle source
# File lib/braintree/errors.rb, line 10
def each(&block)
  @errors.deep_errors.each(&block)
end
for(scope) click to toggle source
# File lib/braintree/errors.rb, line 14
def for(scope)
  @errors.for(scope)
end
size() click to toggle source

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.