Class: Facebook::Messenger::Incoming::Read
- Inherits:
-
Object
- Object
- Facebook::Messenger::Incoming::Read
- Includes:
- Common
- Defined in:
- lib/facebook/messenger/incoming/read.rb
Overview
The Read class represents the user reading a delivered message.
Instance Attribute Summary
Attributes included from Common
Instance Method Summary collapse
-
#at ⇒ Object
Return time object when message is read by user.
-
#seq ⇒ Object
Return Integer defining the sequence number of message.
Methods included from Common
#access_token, #app_secret_proof, #initialize, #mark_seen, #prior_message, #recipient, #reply, #sender, #sent_at, #typing_off, #typing_on
Instance Method Details
#at ⇒ Object
Return time object when message is read by user.
10 11 12 |
# File 'lib/facebook/messenger/incoming/read.rb', line 10 def at Time.at(@messaging['read']['watermark'] / 1000) end |
#seq ⇒ Object
Return Integer defining the sequence number of message.
15 16 17 |
# File 'lib/facebook/messenger/incoming/read.rb', line 15 def seq @messaging['read']['seq'] end |