Class: EenieMeenie::Assignment

Inherits:
PayDirt::Base
  • Object
show all
Defined in:
lib/eenie_meenie/assignment.rb

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Assignment

Returns a new instance of Assignment.



3
4
5
6
7
8
9
# File 'lib/eenie_meenie/assignment.rb', line 3

def initialize(options)
  options = {
    class_rules: {}
  }.merge(options)

  load_options(:member, :class_rules, :groups, :group_rules, options)
end

Instance Method Details

#execute!Object



11
12
13
# File 'lib/eenie_meenie/assignment.rb', line 11

def execute!
  set_group_counts and return random_group
end