Class: Twitch::Bot::MessageParser

Inherits:
Object
  • Object
show all
Defined in:
lib/twitch/bot/message_parser.rb

Overview

This class calls the parser related to the IRC command we received.

Instance Method Summary collapse

Constructor Details

#initialize(irc_message) ⇒ MessageParser

Returns a new instance of MessageParser.



7
8
9
# File 'lib/twitch/bot/message_parser.rb', line 7

def initialize(irc_message)
  @irc_message = irc_message
end

Instance Method Details

#messageObject



11
12
13
# File 'lib/twitch/bot/message_parser.rb', line 11

def message
  parse_command
end