Class: Printable

Inherits:
ApplicationRecord show all
Defined in:
app/models/printable.rb

Class Method Summary collapse

Class Method Details

.salesObject

etc. }


8
9
10
11
12
# File 'app/models/printable.rb', line 8

def self.sales
   	(1..10).each_with_object(Hash.new) do |i, h|
     		h[i] = (rand(10000) / (rand(100)+1)).to_i
   	end
end