Module: Paysio::Actions::Destroy

Included in:
Coupon, Customer, Reward, Wallet
Defined in:
lib/paysio/actions/destroy.rb

Instance Method Summary collapse

Instance Method Details

#delete(attrs = {}) ⇒ Object



4
5
6
7
# File 'lib/paysio/actions/destroy.rb', line 4

def delete(attrs = {})
  response = Paysio::Client.request(:delete, path)
  refresh_from(response.to_hash)
end