Class: MessageQuickly::Messaging::ReadEvent

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

Instance Attribute Summary collapse

Attributes inherited from Event

#entry, #recipient, #sender, #timestamp

Instance Method Summary collapse

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

#seqObject (readonly)

Returns the value of attribute seq.



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

def seq
  @seq
end

#watermarkObject (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_nameObject



18
19
20
# File 'lib/message_quickly/messaging/read_event.rb', line 18

def webhook_name
  :message_reads
end