Files
openfoodnetwork/app/models/invoice/data_presenter/base.rb
Mohamed ABDELLANI 0fbf88190e Generate invoice model
There are three main components:
1. The invoice model
2. order serializers: serialize the order for the invoice
3. data presenters: the object that will be use to access the order's serialize data
2023-06-18 21:03:13 +02:00

8 lines
140 B
Ruby

class Invoice::DataPresenter::Base
attr :data
def initialize(data)
@data = data
end
extend Invoice::DataPresenterAttributes
end