Nifty::Report
Create reports the easy way.
Installation
Add this line to your application's Gemfile:
gem 'nifty-report'
And then execute:
$ bundle
Or install it yourself as:
$ gem install nifty-report
Usage
report = Nifty::Report.new('SELECT * FROM users', 'User Report')
report.email_to('[email protected]')
A CSV of all users in the database will be emailed to Jim Tom. You could use a job queue to delay this as well, which I would recommend.
Contributing
- Fork it ( http://github.com/
/nifty-report/fork ) - Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request