# File lib/braintree/credit_card.rb, line 190 def update(attributes) warn "[DEPRECATED] update as an instance method is deprecated. Please use CreditCard.update" result = @gateway.credit_card.update(token, attributes) if result.success? copy_instance_variables_from_object result.credit_card end result end