Files
baclight/app/services/id_card_printer/sample_cards_generator.rb
T

16 lines
386 B
Ruby
Raw Normal View History

2026-03-19 00:42:27 -04:00
module IdCardPrinter
class SampleCardsGenerator
def initialize(employer)
@employer = employer
end
def call
IdCard::PrintData.where(employer_name: @employer.name).destroy_all
IdCardPrinter::SampleDataFormatter.new(@employer).call
IdCardPrinter::SamplePdfProcessor.new(@employer).call
end
end
end