Class: Braintree::PaymentMethod
- Inherits:
-
Object
- Object
- Braintree::PaymentMethod
show all
- Includes:
- BaseModule
- Defined in:
- lib/braintree/payment_method.rb
Class Method Summary
collapse
Methods included from BaseModule
included
#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class
Class Method Details
.create(attributes) ⇒ Object
5
6
7
|
# File 'lib/braintree/payment_method.rb', line 5
def self.create(attributes)
Configuration.gateway.payment_method.create(attributes)
end
|
.delete(token) ⇒ Object
17
18
19
|
# File 'lib/braintree/payment_method.rb', line 17
def self.delete(token)
Configuration.gateway.payment_method.delete(token)
end
|
.find(token) ⇒ Object
9
10
11
|
# File 'lib/braintree/payment_method.rb', line 9
def self.find(token)
Configuration.gateway.payment_method.find(token)
end
|
.update(token, attributes) ⇒ Object
13
14
15
|
# File 'lib/braintree/payment_method.rb', line 13
def self.update(token, attributes)
Configuration.gateway.payment_method.update(token, attributes)
end
|