Class: Braintree::PayPalPaymentResource
- Inherits:
-
Object
- Object
- Braintree::PayPalPaymentResource
- Includes:
- BaseModule
- Defined in:
- lib/braintree/paypal_payment_resource.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(gateway, attributes) ⇒ PayPalPaymentResource
constructor
A new instance of PayPalPaymentResource.
Methods included from BaseModule
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 |