Sha256: 62de2e98e9f80871cc7112ea538f5c8778426fe34ab058b0a48f444028d7fb48

Contents?: true

Size: 279 Bytes

Versions: 2

Compression:

Stored size: 279 Bytes

Contents

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

      def publishable?
        call && call.agent?
      end

      def agent_messages
        [
          {
            agent: 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/ended.rb
telephony-1.0.3 app/models/telephony/events/ended.rb