Class: MegaLotto::Drawing
- Inherits:
-
Object
- Object
- MegaLotto::Drawing
- Defined in:
- lib/mega_lotto/drawing.rb
Overview
Drawing business logic
Instance Attribute Summary collapse
-
#drawing_count ⇒ Object
Returns the value of attribute drawing_count.
Instance Method Summary collapse
Instance Attribute Details
#drawing_count ⇒ Object
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
#draw ⇒ Object
8 9 10 |
# File 'lib/mega_lotto/drawing.rb', line 8 def draw Array.new(MegaLotto.configuration.drawing_count) { single_random_draw } end |