aboutsummaryrefslogtreecommitdiffstats
path: root/lib
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
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')
-rw-r--r--lib/reports/sales_by_country.rb2
-rw-r--r--lib/reports/sales_by_date.rb2
-rw-r--r--lib/reports/sales_by_shop.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/reports/sales_by_country.rb b/lib/reports/sales_by_country.rb
index 58f1b15..4017dbf 100644
--- a/lib/reports/sales_by_country.rb
+++ b/lib/reports/sales_by_country.rb
@@ -1,7 +1,7 @@
module SalesReporter
module Reports
class SalesByCountry
- def self.render(sales)
+ def render(sales)
sales_by_country = {}
sales.each do |s|
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|
diff --git a/lib/reports/sales_by_shop.rb b/lib/reports/sales_by_shop.rb
index 7308b1d..66caf63 100644
--- a/lib/reports/sales_by_shop.rb
+++ b/lib/reports/sales_by_shop.rb
@@ -1,7 +1,7 @@
module SalesReporter
module Reports
class SalesByShop
- def self.render(sales)
+ def render(sales)
sales_by_shop = {}
sales.each do |s|