Class: EenieMeenie::PolyAssignment

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

Instance Method Summary collapse

Methods inherited from Base

#load_option, #load_options

Constructor Details

#initialize(options) ⇒ PolyAssignment



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

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

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

Instance Method Details

#execute!Object



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

def execute!
  set_group_counts
  return random_group
end