Sha256: 4f51b4c1d30b2856581c6892a48dfbe42400b7a2bf9c620d4be759a7d0851a0e

Contents?: true

Size: 644 Bytes

Versions: 8

Compression:

Stored size: 644 Bytes

Contents

module Braintree
  class PaymentMethodCustomerDataUpdatedMetadata
    include BaseModule

    attr_reader :token
    attr_reader :payment_method
    attr_reader :datetime_updated
    attr_reader :enriched_customer_data

    def initialize(gateway, attributes)
      set_instance_variables_from_hash(attributes)
      @payment_method = PaymentMethodParser.parse_payment_method(gateway, attributes[:payment_method])
      @enriched_customer_data = EnrichedCustomerData._new(enriched_customer_data) if enriched_customer_data
    end

    class << self
      protected :new
    end

    def self._new(*args)
      self.new(*args)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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