Class: Telephony::Events::CompleteHold
- Inherits:
-
Base
- Object
- ActiveRecord::Base
- Base
- Base
- Telephony::Events::CompleteHold
show all
- Defined in:
- app/models/telephony/events/complete_hold.rb
Instance Method Summary
collapse
Methods inherited from Base
#active_agent2, #agent1, #agent2, #call, #default_data, find_last_for_agent, #for_agent?, log, new_default_event, #publish, #republish_only_for
Instance Method Details
#agent_messages ⇒ Object
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'app/models/telephony/events/complete_hold.rb', line 8
def agent_messages
msgs = [
{
agent: agent1
}
]
if active_agent2
msgs << {
agent: active_agent2,
data: {
owner: false
}
}
end
msgs
end
|
#publishable? ⇒ Boolean
4
5
6
|
# File 'app/models/telephony/events/complete_hold.rb', line 4
def publishable?
call_id.nil?
end
|