Class: Economic::Invoices::Repo
- Defined in:
- lib/economic/invoices/repo.rb
Direct Known Subclasses
BookedRepo, DraftsRepo, NotDueRepo, OverdueRepo, PaidRepo, SentRepo, UnpaidRepo
Constant Summary
Constants inherited from BaseRepo
Class Method Summary collapse
Methods inherited from BaseRepo
destroy, endpoint_url, filter, find, id_to_url_formatted_id, save, send, send_request, updated_after
Class Method Details
.all ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/economic/invoices/repo.rb', line 4 def self.all invoices = super invoices.each do |invoice| invoice.remove_instance_variable("@lines") class << invoice define_method(:lines) { raise NoMethodError } end end invoices end |