Class: Survey::OptionsType
- Inherits:
-
Object
- Object
- Survey::OptionsType
- Defined in:
- app/models/survey/options_type.rb
Constant Summary collapse
- @@options_types =
{:multi_choices => 1, :single_choice => 2, :number => 3, :text => 4, :multi_choices_with_text => 5, :single_choice_with_text => 6, :multi_choices_with_number => 7, :single_choice_with_number => 8, :large_text => 9}
Class Method Summary collapse
- .options_type_ids ⇒ Object
- .options_type_keys ⇒ Object
- .options_types ⇒ Object
- .options_types_title ⇒ Object
Class Method Details
.options_type_ids ⇒ Object
22 23 24 |
# File 'app/models/survey/options_type.rb', line 22 def self. @@options_types.values end |
.options_type_keys ⇒ Object
26 27 28 |
# File 'app/models/survey/options_type.rb', line 26 def self. @@options_types.keys end |
.options_types ⇒ Object
12 13 14 |
# File 'app/models/survey/options_type.rb', line 12 def self. @@options_types end |
.options_types_title ⇒ Object
16 17 18 19 20 |
# File 'app/models/survey/options_type.rb', line 16 def self. titled = {} Survey::OptionsType..each{|k, v| titled[k.to_s.titleize] = v} titled end |