Class: CasperReports

Inherits:
Object
  • Object
show all
Defined in:
lib/casper_reports.rb

Overview

Provide a simple class interface to running a jasper report

Constant Summary collapse

VERSION =
'0.1.1'

Instance Method Summary collapse

Instance Method Details

#compile(jrxml, data, xpath, type = 'pdf') ⇒ Object



34
35
36
# File 'lib/casper_reports.rb', line 34

def compile(jrxml, data, xpath, type='pdf')
  String.from_java_bytes(Java::XmlDataReportProducer.compile(jrxml, data, xpath, type))
end