lib/braintree/error_result.rb in braintree-4.15.0 vs lib/braintree/error_result.rb in braintree-4.16.0

- old
+ new

@@ -8,11 +8,11 @@ attr_reader :params attr_reader :subscription attr_reader :transaction attr_reader :verification - def initialize(gateway, data) # :nodoc: + def initialize(gateway, data) @gateway = gateway @params = data[:params] @credit_card_verification = CreditCardVerification._new(data[:verification]) if data[:verification] @merchant_account = MerchantAccount._new(gateway, data[:merchant_account]) if data[:merchant_account] @message = data[:message] @@ -20,20 +20,19 @@ @verification = CreditCardVerification._new(data[:verification]) if data[:verification] @subscription = Subscription._new(gateway, data[:subscription]) if data[:subscription] @errors = Errors.new(data[:errors]) end - def inspect # :nodoc: + def inspect if @credit_card_verification verification_inspect = " credit_card_verification: #{@credit_card_verification.inspect}" end if @transaction transaction_inspect = " transaction: #{@transaction.inspect}" end "#<#{self.class} params:{...} errors:<#{@errors._inner_inspect}>#{verification_inspect}#{transaction_inspect}>" end - # Always returns false. def success? false end end end