Class: Rapidfire::QuestionResultSerializer

Inherits:
ActiveModel::Serializer
  • Object
show all
Defined in:
app/serializers/rapidfire/question_result_serializer.rb

Instance Method Summary collapse

Instance Method Details

#question_textObject



11
12
13
# File 'app/serializers/rapidfire/question_result_serializer.rb', line 11

def question_text
  object.question.question_text
end

#question_typeObject



7
8
9
# File 'app/serializers/rapidfire/question_result_serializer.rb', line 7

def question_type
  object.question.type
end