Class: Braintree::LocalPaymentCompleted

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

Returns a new instance of LocalPaymentCompleted.



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

def initialize(attributes)
  set_instance_variables_from_hash(attributes)
  @transaction = Transaction._new(Configuration.gateway, transaction) unless transaction.nil?
end

Instance Attribute Details

#payer_idObject (readonly)

Returns the value of attribute payer_id.



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

def payer_id
  @payer_id
end

#payment_idObject (readonly)

Returns the value of attribute payment_id.



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

def payment_id
  @payment_id
end

#payment_method_nonceObject (readonly)

Returns the value of attribute payment_method_nonce.



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

def payment_method_nonce
  @payment_method_nonce
end

#transactionObject (readonly)

Returns the value of attribute transaction.



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

def transaction
  @transaction
end

Class Method Details

._new(*args) ⇒ Object



19
20
21
# File 'lib/braintree/local_payment_completed.rb', line 19

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