Sha256: af78136a9682bdbf87bcfb6bdfbc4adce4984848c956bd2b041b3286389c686c

Contents?: true

Size: 529 Bytes

Versions: 8

Compression:

Stored size: 529 Bytes

Contents

module Braintree
  class RevokedPaymentMethodMetadata
    include BaseModule

    attr_reader :customer_id
    attr_reader :token
    attr_reader :revoked_payment_method

    def initialize(gateway, attributes)
      @revoked_payment_method = PaymentMethodParser.parse_payment_method(gateway, attributes)
      @customer_id = @revoked_payment_method.customer_id
      @token = @revoked_payment_method.token
    end

    class << self
      protected :new
      def _new(*args)
        self.new(*args)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
braintree-4.23.0 lib/braintree/revoked_payment_method_metadata.rb
braintree-4.22.0 lib/braintree/revoked_payment_method_metadata.rb
braintree-4.21.0 lib/braintree/revoked_payment_method_metadata.rb
braintree-4.20.0 lib/braintree/revoked_payment_method_metadata.rb
braintree-4.19.0 lib/braintree/revoked_payment_method_metadata.rb
braintree-4.18.0 lib/braintree/revoked_payment_method_metadata.rb
braintree-4.17.0 lib/braintree/revoked_payment_method_metadata.rb
braintree-4.16.0 lib/braintree/revoked_payment_method_metadata.rb