Class: Economic::Invoices::Repo

Inherits:
BaseRepo
  • Object
show all
Defined in:
lib/economic/invoices/repo.rb

Constant Summary

Constants inherited from BaseRepo

BaseRepo::URL

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

.allObject



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