Module: Billrb::Operations::Replace
- Included in:
- CreditMemo, Invoice, RecurringInvoice
- Defined in:
- lib/billrb/operations.rb
Overview
PUT — full replacement of the resource, including its line items (omitted line item ids are removed), unlike PATCH-based Update.
Instance Method Summary collapse
Instance Method Details
#replace(id, params, options = {}) ⇒ Object
45 46 47 48 |
# File 'lib/billrb/operations.rb', line 45 def replace(id, params, = {}) new(Operations.client_from().put("#{resource_path}/#{id}", Util.camelize_keys(params))) end |