Class: Braintree::SuccessfulResult


A SuccessfulResult will be returned from non-bang methods when validations pass. It will provide access to the created resource. For example, when creating a customer, SuccessfulResult will respond to customer like so:

  result = Customer.create(:first_name => "John")
  if result.success?
    # have a SuccessfulResult
    puts "Created customer #{result.customer.id}
  else
    # have an ErrorResult
  end

Public Instance Methods
success?()

Always returns true.


© Copyright 2009 Braintree Payment Solutions. All Rights Reserved.