Class: Barker::Api::Response::CandidateAnswer
- Extended by:
- Forwardable
- Defined in:
- lib/barker/api/response/candidate_answer.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#to_hash ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/barker/api/response/candidate_answer.rb', line 9 def to_hash { 'id' => id, 'answer_id' => answer_id, 'candidate_id' => candidate_id, 'label' => label, 'revealed?' => revealed?, 'correct?' => correct? } end |