Class: Braintree::RevokedPaymentMethodMetadata

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/revoked_payment_method_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) ⇒ RevokedPaymentMethodMetadata

Returns a new instance of RevokedPaymentMethodMetadata.


9
10
11
12
13
# File 'lib/braintree/revoked_payment_method_metadata.rb', line 9

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

Instance Attribute Details

#customer_idObject (readonly)

Returns the value of attribute customer_id.


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

def customer_id
  @customer_id
end

#revoked_payment_methodObject (readonly)

Returns the value of attribute revoked_payment_method.


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

def revoked_payment_method
  @revoked_payment_method
end

#tokenObject (readonly)

Returns the value of attribute token.


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

def token
  @token
end

Class Method Details

._new(*args) ⇒ Object

:nodoc:


17
18
19
# File 'lib/braintree/revoked_payment_method_metadata.rb', line 17

def _new(*args) # :nodoc:
  self.new(*args)
end