Module: SoqlEnum
- Defined in:
- lib/leap_salesforce/soql_data/soql_enum.rb
Overview
Module all SoqlEnums include
Class Method Summary collapse
-
.values_for(object) ⇒ Array
List of picklist classes that inherit from SoqlEnum and relate to provided class.
Class Method Details
.values_for(object) ⇒ Array
Returns List of picklist classes that inherit from SoqlEnum and relate to provided class.
8 9 10 |
# File 'lib/leap_salesforce/soql_data/soql_enum.rb', line 8 def self.values_for(object) ObjectSpace.each_object(Module).select { |class_name| class_name < self && class_name.to_s.start_with?("#{object}::") } end |