Method: WeChat::Bot::Message#initialize
- Defined in:
- lib/wechat/bot/message.rb
#initialize(raw, bot) ⇒ Message
Returns a new instance of Message.
64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/wechat/bot/message.rb', line 64 def initialize(raw, bot) @raw = raw @bot = bot @events = [] @time = Time.now @statusmsg_mode = nil parse @bot.logger.verbose "Message Raw: #{@raw}" end |