Class: Recruitee::Candidate

Inherits:
Resource show all
Defined in:
lib/recruitee/resources/candidate.rb

Instance Attribute Summary

Attributes inherited from Resource

#properties

Instance Method Summary collapse

Methods inherited from Resource

#[], #[]=, #initialize, #method_missing, #respond_to_missing?, #to_s

Constructor Details

This class inherits a constructor from Recruitee::Resource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Recruitee::Resource

Instance Method Details

#interview_eventsObject



5
6
7
# File 'lib/recruitee/resources/candidate.rb', line 5

def interview_events
  @_interview_events ||= client.interview_events.list(candidate_id: id)
end

#interview_resultsObject Also known as: evaluations



9
10
11
# File 'lib/recruitee/resources/candidate.rb', line 9

def interview_results
  @_interview_results ||= client.interview_results.list(candidate_id: id)
end

#offersObject



14
15
16
# File 'lib/recruitee/resources/candidate.rb', line 14

def offers
  @_offers ||= placements.map(&:offer)
end

#placementsObject



18
19
20
21
22
# File 'lib/recruitee/resources/candidate.rb', line 18

def placements
  @_placements ||= @properties[:placements].map do |attrs|
    Placement.new(client, attrs)
  end
end