class RdcLotto::Drawing
Attributes
config[RW]
Public Class Methods
new(config = Configuration.new)
click to toggle source
# File lib/rdc_lotto/drawing.rb, line 5 def initialize(config = Configuration.new) @config = config end
Public Instance Methods
draw()
click to toggle source
# File lib/rdc_lotto/drawing.rb, line 9 def draw @config.drawing_count.times.map { draw_number } end
Private Instance Methods
draw_number()
click to toggle source
# File lib/rdc_lotto/drawing.rb, line 15 def draw_number rand(0..59) end