Class: AskIt::QuestionType
- Inherits:
-
Object
- Object
- AskIt::QuestionType
- Defined in:
- app/models/ask_it/question_type.rb
Constant Summary collapse
- @@questions_types =
{ multiple_choice: 2, free_response: 9, multi_select: 1 }
Class Method Summary collapse
- .questions_type_ids ⇒ Object
- .questions_type_keys ⇒ Object
- .questions_types ⇒ Object
- .questions_types_title ⇒ Object
Class Method Details
.questions_type_ids ⇒ Object
18 19 20 |
# File 'app/models/ask_it/question_type.rb', line 18 def self.questions_type_ids @@questions_types.values end |
.questions_type_keys ⇒ Object
22 23 24 |
# File 'app/models/ask_it/question_type.rb', line 22 def self.questions_type_keys @@questions_types.keys end |
.questions_types ⇒ Object
8 9 10 |
# File 'app/models/ask_it/question_type.rb', line 8 def self.questions_types @@questions_types end |
.questions_types_title ⇒ Object
12 13 14 15 16 |
# File 'app/models/ask_it/question_type.rb', line 12 def self.questions_types_title titled = {} AskIt::QuestionType.questions_types.each { |k, v| titled[k.to_s.titleize] = v } titled end |