Class: Facebook::Messenger::Incoming::Read

Inherits:
Object
  • Object
show all
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

#messaging

Instance Method Summary collapse

Methods included from Common

#access_token, #initialize, #mark_seen, #recipient, #reply, #sender, #sent_at, #typing_off, #typing_on

Instance Method Details

#atObject



8
9
10
# File 'lib/facebook/messenger/incoming/read.rb', line 8

def at
  Time.at(@messaging['read']['watermark'] / 1000)
end

#seqObject



12
13
14
# File 'lib/facebook/messenger/incoming/read.rb', line 12

def seq
  @messaging['read']['seq']
end