Class: Rapidfire::QuestionResult

Inherits:
BaseService show all
Includes:
ActiveModel::Serialization
Defined in:
app/services/rapidfire/question_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseService

#initialize, #persisted

Constructor Details

This class inherits a constructor from Rapidfire::BaseService

Instance Attribute Details

#questionObject

Returns the value of attribute question.



5
6
7
# File 'app/services/rapidfire/question_result.rb', line 5

def question
  @question
end

#resultsObject

Returns the value of attribute results.



5
6
7
# File 'app/services/rapidfire/question_result.rb', line 5

def results
  @results
end

Instance Method Details

#active_model_serializerObject



7
8
9
# File 'app/services/rapidfire/question_result.rb', line 7

def active_model_serializer
  Rapidfire::QuestionResultSerializer
end