Module: Optimizely::Helpers::Group

Defined in:
lib/optimizely/helpers/group.rb

Constant Summary collapse

OVERLAPPING_POLICY =
'overlapping'
RANDOM_POLICY =
'random'

Class Method Summary collapse

Class Method Details

.random_policy?(group) ⇒ Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/optimizely/helpers/group.rb', line 26

def random_policy?(group)
  group['policy'] == RANDOM_POLICY
end