Module: CohortAnalysis::ArelSelectManagerInstanceMethods

Defined in:
lib/cohort_analysis/arel_select_manager_instance_methods.rb

Instance Method Summary collapse

Instance Method Details

#cohort(characteristics, options = {}) ⇒ Arel::SelectManager

Returns:

  • (Arel::SelectManager)


4
5
6
# File 'lib/cohort_analysis/arel_select_manager_instance_methods.rb', line 4

def cohort(characteristics, options = {})
  where Strategy.create(self, characteristics, options)
end

#cohort_possible?true, ...

If a cohort has been constructed using this Arel::SelectManager, then this will tell you whether it was successful (posssible) or not.

Returns:

  • (true, false, nil)


10
11
12
# File 'lib/cohort_analysis/arel_select_manager_instance_methods.rb', line 10

def cohort_possible?
  @cohort_possible_query
end