Sha256: bcd39bf9c374295a8c52e4f2315dabc7b1b31124bdb0f5f9c8106e42f2994a48

Contents?: true

Size: 388 Bytes

Versions: 2

Compression:

Stored size: 388 Bytes

Contents

module Bobot
  module Event
    # The Delivery class represents the receipt of a delivered message.
    class Delivery
      include Bobot::Event::Common

      def ids
        @messaging['delivery']['mids']
      end

      def at
        Time.zone.at(@messaging['delivery']['watermark'] / 1000)
      end

      def seq
        @messaging['delivery']['seq']
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bobot-1.0.53 lib/bobot/events/delivery.rb
bobot-1.0.52 lib/bobot/events/delivery.rb