Class: Economic::Invoices::DraftsRepo

Inherits:
Repo show all
Defined in:
lib/economic/invoices/drafts_repo.rb

Constant Summary

Constants inherited from BaseRepo

BaseRepo::URL

Class Method Summary collapse

Methods inherited from Repo

all, filter, send

Methods inherited from BaseRepo

all, destroy, endpoint_url, filter, find, id_to_url_formatted_id, save, send, 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