aboutsummaryrefslogtreecommitdiffstats
path: root/lib/reports/sales_by_date.rb
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2014-11-14 14:29:06 +0100
committerHarald Eilertsen <haraldei@anduin.net>2014-11-14 14:29:06 +0100
commit1aa812034f41e79d3497a14528bcb66d362c4eb2 (patch)
tree97619853fd5847178225057075eaffbe04723a5e /lib/reports/sales_by_date.rb
parent8fd06149ffe3d5790cdcb64d40916210590b03ba (diff)
downloadimusician-reports-1aa812034f41e79d3497a14528bcb66d362c4eb2.tar.gz
imusician-reports-1aa812034f41e79d3497a14528bcb66d362c4eb2.tar.bz2
imusician-reports-1aa812034f41e79d3497a14528bcb66d362c4eb2.zip
Instantiate reports instead of using static methods.
Diffstat (limited to 'lib/reports/sales_by_date.rb')
-rw-r--r--lib/reports/sales_by_date.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/reports/sales_by_date.rb b/lib/reports/sales_by_date.rb
index 9e623f1..4bc9094 100644
--- a/lib/reports/sales_by_date.rb
+++ b/lib/reports/sales_by_date.rb
@@ -1,7 +1,7 @@
module SalesReporter
module Reports
class SalesByDate
- def self.render(sales)
+ def render(sales)
sales_by_date = {}
sales.each do |s|