class Yorgi::MessageResponder
Attributes
bot[R]
journaling[RW]
message[R]
Public Class Methods
new(bot, message)
click to toggle source
# File lib/yorgi/message_responder.rb, line 10 def initialize(bot, message) @bot = bot @message = message @journaling = Settings.journaling end
Public Instance Methods
capture()
click to toggle source
# File lib/yorgi/message_responder.rb, line 24 def capture Org::Capture.new.capture message.text list end
journal()
click to toggle source
# File lib/yorgi/message_responder.rb, line 20 def journal Org::Journal.new.add message.text end
list()
click to toggle source
# File lib/yorgi/message_responder.rb, line 16 def list bot.api.send_message(chat_id: message.chat.id, text: headlines) end