Class: MessageQuickly::Messaging::ReadEvent
- Defined in:
- lib/message_quickly/messaging/read_event.rb
Instance Attribute Summary collapse
-
#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 = {}) ⇒ ReadEvent
constructor
A new instance of ReadEvent.
- #webhook_name ⇒ Object
Constructor Details
#initialize(params = {}) ⇒ ReadEvent
Returns a new instance of ReadEvent.
9 10 11 12 13 14 15 16 |
# File 'lib/message_quickly/messaging/read_event.rb', line 9 def initialize(params = {}) if params.include? :read @watermark = params[:read][:watermark] @seq = params[:read][:seq] params.delete(:read) end super(params) end |
Instance Attribute Details
#seq ⇒ Object (readonly)
Returns the value of attribute seq.
7 8 9 |
# File 'lib/message_quickly/messaging/read_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/read_event.rb', line 7 def watermark @watermark end |
Instance Method Details
#webhook_name ⇒ Object
18 19 20 |
# File 'lib/message_quickly/messaging/read_event.rb', line 18 def webhook_name :message_reads end |