Module: Invoiced::Operations::Delete
- Included in:
- Customer, Invoice, LineItem, Subscription, Transaction
- Defined in:
- lib/invoiced/operations/delete.rb
Instance Method Summary collapse
Instance Method Details
#delete ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/invoiced/operations/delete.rb', line 4 def delete response = @client.request(:delete, self.endpoint()) if response[:code] == 204 refresh_from({:id => @id}) end return response[:code] == 204 end |