Class: Barker::Api::Response::CandidateAnswer

Inherits:
Base
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/barker/api/response/candidate_answer.rb

Instance Method Summary collapse

Methods inherited from Base

#error?, #ok?

Instance Method Details

#to_hashObject



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