Class: MessageQuickly::Messaging::DeliveryEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/message_quickly/messaging/delivery_event.rb

Instance Attribute Summary collapse

Attributes inherited from Event

#entry, #recipient, #sender, #timestamp

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ DeliveryEvent

Returns a new instance of DeliveryEvent.



9
10
11
12
13
14
15
16
17
# File 'lib/message_quickly/messaging/delivery_event.rb', line 9

def initialize(params = {})
  if params.include? :delivery
    @mids = params[:delivery][:mids]
    @watermark = params[:delivery][:watermark]
    @seq = params[:delivery][:seq]
    params.delete(:delivery)
  end
  super(params)
end

Instance Attribute Details

#midsObject (readonly)

Returns the value of attribute mids.



7
8
9
# File 'lib/message_quickly/messaging/delivery_event.rb', line 7

def mids
  @mids
end

#seqObject (readonly)

Returns the value of attribute seq.



7
8
9
# File 'lib/message_quickly/messaging/delivery_event.rb', line 7

def seq
  @seq
end

#watermarkObject (readonly)

Returns the value of attribute watermark.



7
8
9
# File 'lib/message_quickly/messaging/delivery_event.rb', line 7

def watermark
  @watermark
end

Instance Method Details

#webhook_nameObject



19
20
21
# File 'lib/message_quickly/messaging/delivery_event.rb', line 19

def webhook_name
  :message_deliveries
end