Class: Model::QuestionReplyType

Inherits:
Object
  • Object
show all
Defined in:
lib/models/question_reply_type.rb

Class Method Summary collapse

Class Method Details

.to_sym(query) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/models/question_reply_type.rb', line 3

def self.to_sym(query)
  case query.value(QV.replyType)
  when QV.Number
    :number
  when QV.Location
    :location
  when QV.Temperature
    :temperature
  when QV.Select
    :select
  else
    nil
  end
end