Class: AskIt::OptionsType
- Inherits:
-
Object
- Object
- AskIt::OptionsType
- Defined in:
- app/models/ask_it/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
25 26 27 |
# File 'app/models/ask_it/options_type.rb', line 25 def self. @@options_types.values end |
.options_type_keys ⇒ Object
29 30 31 |
# File 'app/models/ask_it/options_type.rb', line 29 def self. @@options_types.keys end |
.options_types ⇒ Object
15 16 17 |
# File 'app/models/ask_it/options_type.rb', line 15 def self. @@options_types end |
.options_types_title ⇒ Object
19 20 21 22 23 |
# File 'app/models/ask_it/options_type.rb', line 19 def self. titled = {} AskIt::OptionsType..each { |k, v| titled[k.to_s.titleize] = v } titled end |