Class: Missinglink::SurveyResponseAnswer

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/missinglink/survey_response_answer.rb

Class Method Summary collapse

Class Method Details

.parse(response, hash) ⇒ Object



7
8
9
10
11
12
# File 'app/models/missinglink/survey_response_answer.rb', line 7

def self.parse(response, hash)
  answer = SurveyResponseAnswer.create({survey_response_id: response.id}.
                                          merge(prepare_answer_hash(hash)))

  return answer
end