working on data printer
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
module IdCardPrinter
|
||||
class JasperPdfGenerator
|
||||
|
||||
def initialize(jasper_url)
|
||||
@jasper_url = jasper_url
|
||||
end
|
||||
|
||||
|
||||
def call
|
||||
|
||||
response = HTTParty.get(@jasper_url)
|
||||
CombinePDF.parse(response.body)
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user