Sha256: c5a88a32a1f84f0e7c826305b9965bb95588ca5a5a5c7243a30703b78f0fc020

Contents?: true

Size: 363 Bytes

Versions: 2

Compression:

Stored size: 363 Bytes

Contents

module Telephony
  module Events
    class CallAnswered < Base
      self.abstract_class = true

      def publishable?
        call && call.agent?
      end

      def agent_messages
        [
          {
            agent: call.agent,
            data: {
              owner: agent1 == call.agent
            }
          }
        ]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
telephony-1.0.4 app/models/telephony/events/call_answered.rb
telephony-1.0.3 app/models/telephony/events/call_answered.rb