Class: MegaLotto::Drawing

Inherits:
Object
  • Object
show all
Defined in:
lib/mega_lotto/drawing.rb

Overview

Drawing business logic

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#drawing_countObject

Returns the value of attribute drawing_count.



6
7
8
# File 'lib/mega_lotto/drawing.rb', line 6

def drawing_count
  @drawing_count
end

Instance Method Details

#drawObject



8
9
10
# File 'lib/mega_lotto/drawing.rb', line 8

def draw
  Array.new(MegaLotto.configuration.drawing_count) { single_random_draw }
end