Sha256: 8715b43622782eb9efdd0160753e3b9ea73c8835b965d7b1219531e6dd32d870

Contents?: true

Size: 664 Bytes

Versions: 10

Compression:

Stored size: 664 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) # :nodoc:
      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) # :nodoc:
      self.new(*args)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
braintree-4.15.0 lib/braintree/payment_method_customer_data_updated_metadata.rb
braintree-4.14.0 lib/braintree/payment_method_customer_data_updated_metadata.rb
braintree-4.13.0 lib/braintree/payment_method_customer_data_updated_metadata.rb
braintree-4.12.0 lib/braintree/payment_method_customer_data_updated_metadata.rb
braintree-4.11.0 lib/braintree/payment_method_customer_data_updated_metadata.rb
braintree-4.10.0 lib/braintree/payment_method_customer_data_updated_metadata.rb
braintree-4.9.0 lib/braintree/payment_method_customer_data_updated_metadata.rb
braintree-4.8.0 lib/braintree/payment_method_customer_data_updated_metadata.rb
braintree-4.7.0 lib/braintree/payment_method_customer_data_updated_metadata.rb
braintree-4.6.0 lib/braintree/payment_method_customer_data_updated_metadata.rb