Module: Culqi::Delete
- Included in:
- Card, Customer, Order, Plan, Subscription
- Defined in:
- lib/operation/delete.rb
Instance Method Summary collapse
Instance Method Details
#delete(id) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/operation/delete.rb', line 10 def delete(id) error = verifyClassValidationGet(@url, id) if error return error end response = Culqi.connect("#{@url}#{id}/", Culqi.secret_key, nil, 'delete', Culqi::READ_TIMEOUT) return response end |
#initialize ⇒ Object
6 7 8 |
# File 'lib/operation/delete.rb', line 6 def initialize @url = '' end |