Class: Barker::Api::Response::CandidateJoker

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

Instance Method Summary collapse

Methods inherited from Base

#error?, #ok?

Instance Method Details

#to_hashObject



9
10
11
12
13
14
15
16
# File 'lib/barker/api/response/candidate_joker.rb', line 9

def to_hash
  {
    'id' => id,
    'joker_id' => joker_id,
    'candidate_id' => candidate_id,
    'used_at' => to_i(used_at)
  }
end