Sha256: 8e1a323b35a0984cf5f7b280c7ea06f8cafd6f364a9710a795412eb41cfb1392
Contents?: true
Size: 680 Bytes
Versions: 1
Compression:
Stored size: 680 Bytes
Contents
class MetaReports::Report # # Shared colors. The key is the class name, value is RGB in hex format # COLORS = { even: 'efefef', odd: 'ffffff', } # # Reports # def self.example_report(params) {title: 'Example Report', subtitle: 'this is a test report', tables: {'Table 1' => [['One','Two','Three'],[1,2,3]]}} MetaReports::Data.new do |d| d.title = 'Example Report' d.subtitle = 'Of the Testing Kind' d.description = 'This is a test report.' d.tables["Table 1"] = MetaReports::Table.new do |t| t << ['One', 'Two', 'Three'] t << [1, 2, 3] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
meta_reports-0.0.3 | lib/generators/meta_reports/templates/models/report_non_activerecord.rb |