You need a method reply_to:
message.reply_to
# => ["user@example.com"]
If no response has been set, it will be nil:
message.reply_to
I would recommend looking at the RDoc documentation specifically for the Message Object . This will show you all the methods available in your instance message.
source
share