Module: LeapSalesforce::CommonEnumMethods
- Defined in:
- lib/leap_salesforce/soql_data/common_enum_methods.rb
Overview
Methods common to a enum class
Instance Method Summary collapse
-
#sample ⇒ String
Sample value from Enum.
-
#values ⇒ Array
List of values for enumeration/picklist.
Instance Method Details
#sample ⇒ String
Returns Sample value from Enum.
7 8 9 |
# File 'lib/leap_salesforce/soql_data/common_enum_methods.rb', line 7 def sample values.sample end |
#values ⇒ Array
Returns List of values for enumeration/picklist.
12 13 14 |
# File 'lib/leap_salesforce/soql_data/common_enum_methods.rb', line 12 def values instance_variables.collect { |var| instance_variable_get(var) } end |