Class: Braintree::PaymentMethodCustomerDataUpdatedMetadata

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/payment_method_customer_data_updated_metadata.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from BaseModule

included

Methods included from BaseModule::Methods

#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class

Constructor Details

#initialize(gateway, attributes) ⇒ PaymentMethodCustomerDataUpdatedMetadata

Returns a new instance of PaymentMethodCustomerDataUpdatedMetadata.



10
11
12
13
14
# File 'lib/braintree/payment_method_customer_data_updated_metadata.rb', line 10

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

Instance Attribute Details

#datetime_updatedObject (readonly)

Returns the value of attribute datetime_updated.



7
8
9
# File 'lib/braintree/payment_method_customer_data_updated_metadata.rb', line 7

def datetime_updated
  @datetime_updated
end

#enriched_customer_dataObject (readonly)

Returns the value of attribute enriched_customer_data.



8
9
10
# File 'lib/braintree/payment_method_customer_data_updated_metadata.rb', line 8

def enriched_customer_data
  @enriched_customer_data
end

#payment_methodObject (readonly)

Returns the value of attribute payment_method.



6
7
8
# File 'lib/braintree/payment_method_customer_data_updated_metadata.rb', line 6

def payment_method
  @payment_method
end

#tokenObject (readonly)

Returns the value of attribute token.



5
6
7
# File 'lib/braintree/payment_method_customer_data_updated_metadata.rb', line 5

def token
  @token
end

Class Method Details

._new(*args) ⇒ Object



20
21
22
# File 'lib/braintree/payment_method_customer_data_updated_metadata.rb', line 20

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