Class: Braintree::GrantedPaymentInstrumentUpdate

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/granted_payment_instrument_update.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(attributes) ⇒ GrantedPaymentInstrumentUpdate

Returns a new instance of GrantedPaymentInstrumentUpdate.


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

def initialize(attributes)
  set_instance_variables_from_hash(attributes)
  @payment_method_nonce = attributes[:payment_method_nonce][:nonce]
end

Instance Attribute Details

#grant_owner_merchant_idObject (readonly)

Returns the value of attribute grant_owner_merchant_id.


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

def grant_owner_merchant_id
  @grant_owner_merchant_id
end

#grant_recipient_merchant_idObject (readonly)

Returns the value of attribute grant_recipient_merchant_id.


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

def grant_recipient_merchant_id
  @grant_recipient_merchant_id
end

#payment_method_nonceObject (readonly)

Returns the value of attribute payment_method_nonce.


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

def payment_method_nonce
  @payment_method_nonce
end

#tokenObject (readonly)

Returns the value of attribute token.


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

def token
  @token
end

#updated_fieldsObject (readonly)

Returns the value of attribute updated_fields.


9
10
11
# File 'lib/braintree/granted_payment_instrument_update.rb', line 9

def updated_fields
  @updated_fields
end

Class Method Details

._new(*args) ⇒ Object

:nodoc:


18
19
20
# File 'lib/braintree/granted_payment_instrument_update.rb', line 18

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