Slide 8
Slide 8 text
Manufacture
#
#
operator = (matcher.nil? || matcher.eql?('=') || ['odd', 'even'].include?
(matcher)) ? '==' : matcher
key = case attr
when 'detox': 'has_detox_readiness'
when 'objective': 'objective_id'
when 'cycle_index'
['odd', 'even'].include?(matcher) ? 'cycle_parity' : 'cycle_number'
else
attr
end
val = ['odd', 'even'].include?(matcher) ? "\'#{matcher}'" : value