Sha256: c989240d92bb310b51d275008524bf95df2c4cfc5a99012301ff50e0b6f96440

Contents?: true

Size: 616 Bytes

Versions: 3

Compression:

Stored size: 616 Bytes

Contents

class MetaReports::Report < MetaReports::Base

  #
  # Shared colors. The key is the class name, value is RGB in hex format
  #

  COLORS = {
    even:                   'efefef',
    odd:                    'ffffff',
  }
  

  #
  # Reports
  #

  def self.moo(params)
    MetaReports::Data.new do |d|
      d.title = 'Le Moo'
      d.subtitle = 'Ahem'
      d.tables["The Big Moo"] = MetaReports::Table.new do |t|
        t << ['Number', 'Title', 'Hey']
        t << [1, 'Ode to Moo', 'Ow']
        t << [2, 'Odious Moo', 'Eww']
        t << [3, "#{params[:moo_type]} Moo", 'No Way!']
      end
    end
  end
 
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
meta_reports-0.0.3 spec/dummy/app/models/meta_reports/report.rb
meta_reports-0.0.2 spec/dummy/app/models/meta_reports/report.rb
meta_reports-0.0.1 spec/dummy/app/models/meta_reports/report.rb