Class: Braintree::PayPalPaymentResource

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

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) ⇒ PayPalPaymentResource

Returns a new instance of PayPalPaymentResource.



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

def initialize(gateway, attributes)
    @gateway = gateway
    set_instance_variables_from_hash(attributes)
end

Class Method Details

._new(*args) ⇒ Object



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

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

.update(*args) ⇒ Object



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

def self.update(*args)
    Configuration.gateway.paypal_payment_resource.update(*args)
end