Class: Dazeus::Event::Message
- Defined in:
- lib/dazeus/event/message.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
Returns the value of attribute channel.
-
#message ⇒ Object
Returns the value of attribute message.
-
#network ⇒ Object
Returns the value of attribute network.
-
#nick ⇒ Object
Returns the value of attribute nick.
Attributes inherited from Event
Instance Method Summary collapse
- #action(message) ⇒ Object
- #highlight(message) ⇒ Object
- #post_init ⇒ Object
- #reply(message, highlight = false, action = false) ⇒ Object
Methods inherited from Event
Constructor Details
This class inherits a constructor from Dazeus::Event::Event
Instance Attribute Details
#channel ⇒ Object
Returns the value of attribute channel.
6 7 8 |
# File 'lib/dazeus/event/message.rb', line 6 def channel @channel end |
#message ⇒ Object
Returns the value of attribute message.
6 7 8 |
# File 'lib/dazeus/event/message.rb', line 6 def end |
#network ⇒ Object
Returns the value of attribute network.
6 7 8 |
# File 'lib/dazeus/event/message.rb', line 6 def network @network end |
#nick ⇒ Object
Returns the value of attribute nick.
6 7 8 |
# File 'lib/dazeus/event/message.rb', line 6 def nick @nick end |
Instance Method Details
#action(message) ⇒ Object
24 25 26 |
# File 'lib/dazeus/event/message.rb', line 24 def action() reply(, false, true) end |
#highlight(message) ⇒ Object
20 21 22 |
# File 'lib/dazeus/event/message.rb', line 20 def highlight() reply(, true) end |
#post_init ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/dazeus/event/message.rb', line 8 def post_init super @network = @params[0] @nick = @params[1] @channel = @params[2] = @params[3] end |
#reply(message, highlight = false, action = false) ⇒ Object
16 17 18 |
# File 'lib/dazeus/event/message.rb', line 16 def reply(, highlight=false, action=false) @dazeus.reply(@network, @channel, @nick, , highlight, action) end |