module Talentio
Public Class Methods
candidates()
click to toggle source
# File lib/talentio.rb, line 10 def candidates result = client.candidates.map do |c| # まだステージが割り当てられていない next if c['stages'].empty? # 役員面接とかスキップしたい場合 next if ENV['TALENTIO_SKIP_STAGE'] && c['stages'].size > ENV['TALENTIO_SKIP_STAGE'].to_i candidate = client.candidates(c['id']) s = candidate['stages'].last { time: c['registeredAt'], id: c['id'], step: s['step'], type: s['type'], evaluations: s['evaluations'], scheduled_at: s['scheduledAt'], requisition_name: c['requisition']['name'], candidate_url: URI.join(url, "ats/candidate/#{c['id']}").to_s } end.flatten.compact end
url()
click to toggle source
# File lib/talentio.rb, line 34 def url ENV['TALENTIO_URL'] || "https://talentio.com" end
Private Class Methods
client()
click to toggle source
# File lib/talentio.rb, line 39 def client @client ||= Client.new end