Class: Conekta::PaymentSource

Inherits:
Resource show all
Includes:
Operations::CustomAction, Operations::Delete, Operations::Update
Defined in:
lib/conekta/payment_source.rb

Instance Attribute Summary

Attributes inherited from Resource

#id

Attributes inherited from ConektaObject

#values

Instance Method Summary collapse

Methods included from Operations::CustomAction

#custom_action

Methods included from Operations::Update

#update

Methods included from Operations::Delete

#delete_member

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

#_urlObject



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

#deleteObject



13
14
15
# File 'lib/conekta/payment_source.rb', line 13

def delete
  self.delete_member('customer', 'payment_sources')
end