Class: Talentio::Notifier::Slack
- Inherits:
-
Object
- Object
- Talentio::Notifier::Slack
show all
- Defined in:
- lib/talentio/notifier/slack.rb,
lib/talentio/notifier/slack/interview.rb,
lib/talentio/notifier/slack/selection_result.rb
Defined Under Namespace
Classes: Interview, SelectionResult
Instance Method Summary
collapse
Instance Method Details
#mention_id_from_evaluations(evaluations) ⇒ Object
18
19
20
21
22
23
24
25
26
27
|
# File 'lib/talentio/notifier/slack.rb', line 18
def mention_id_from_evaluations(evaluations)
members.map do |sm|
evaluations.select { |e| !e['finished'] }.map do |m|
next unless sm['email'] != m['email']
{ id: "@#{sm['id']}",
name: sm['name'] }
end
end.flatten.compact
end
|
#nofity ⇒ Object
14
15
16
|
# File 'lib/talentio/notifier/slack.rb', line 14
def nofity
return unless notify?
end
|
#notify? ⇒ Boolean
10
11
12
|
# File 'lib/talentio/notifier/slack.rb', line 10
def notify?
ENV['SLACK_APIKEY']
end
|