Class: Economic::Invoices::DraftsRepo
- Defined in:
- lib/economic/invoices/drafts_repo.rb
Constant Summary
Constants inherited from BaseRepo
Class Method Summary collapse
Methods inherited from Repo
Methods inherited from BaseRepo
all, destroy, endpoint_url, filter, find, id_to_url_formatted_id, save, send_request, updated_after
Class Method Details
.template(customer) ⇒ Object
4 5 6 7 8 |
# File 'lib/economic/invoices/drafts_repo.rb', line 4 def self.template(customer) response = send_request(method: :get, url: customer.templates["invoice"]) modelize_response(response) end |