Class: Conekta::PaymentSource
- Inherits:
-
Resource
- Object
- Hash
- ConektaObject
- Resource
- Conekta::PaymentSource
- Defined in:
- lib/conekta/payment_source.rb
Instance Attribute Summary
Attributes inherited from Resource
Attributes inherited from ConektaObject
Instance Method Summary collapse
Methods included from Operations::CustomAction
Methods included from Operations::Update
Methods included from Operations::Delete
Methods inherited from Resource
_url, #create_member_with_relation, #initialize, underscored_class
Methods inherited from ConektaObject
#class_name, class_name, #create_attr, #first, #initialize, #inspect, #last, #load_from, #set_val, #to_s, #unset_key
Constructor Details
This class inherits a constructor from Conekta::Resource
Instance Method Details
#_url ⇒ Object
7 8 9 10 11 |
# File 'lib/conekta/payment_source.rb', line 7 def _url ensure_id self.customer._url + self.class._url + "/" + id end |
#delete ⇒ Object
13 14 15 |
# File 'lib/conekta/payment_source.rb', line 13 def delete self.delete_member('customer', 'payment_sources') end |