Class: MessageQuickly::Messaging::DeliveryEvent
- Defined in:
- lib/message_quickly/messaging/delivery_event.rb
Instance Attribute Summary collapse
-
#mids ⇒ Object
readonly
Returns the value of attribute mids.
-
#seq ⇒ Object
readonly
Returns the value of attribute seq.
-
#watermark ⇒ Object
readonly
Returns the value of attribute watermark.
Attributes inherited from Event
#entry, #recipient, #sender, #timestamp
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ DeliveryEvent
constructor
A new instance of DeliveryEvent.
- #webhook_name ⇒ Object
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
#mids ⇒ Object (readonly)
Returns the value of attribute mids.
7 8 9 |
# File 'lib/message_quickly/messaging/delivery_event.rb', line 7 def mids @mids end |
#seq ⇒ Object (readonly)
Returns the value of attribute seq.
7 8 9 |
# File 'lib/message_quickly/messaging/delivery_event.rb', line 7 def seq @seq end |
#watermark ⇒ Object (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_name ⇒ Object
19 20 21 |
# File 'lib/message_quickly/messaging/delivery_event.rb', line 19 def webhook_name :message_deliveries end |