Class: ModSpox::Messages::Outgoing::Privmsg
- Inherits:
-
Object
- Object
- ModSpox::Messages::Outgoing::Privmsg
- Defined in:
- lib/mod_spox/messages/outgoing/Privmsg.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
message is an action.
-
#message ⇒ Object
readonly
the message.
-
#target ⇒ Object
readonly
target for the message.
Instance Method Summary collapse
-
#initialize(target, message, action = false) ⇒ Privmsg
constructor
- target
- target for the message message
-
message to be sent Send a message to user or channel.
-
#is_action? ⇒ Boolean
is message an action.
Constructor Details
#initialize(target, message, action = false) ⇒ Privmsg
- target
-
target for the message
- message
-
message to be sent
Send a message to user or channel
14 15 16 17 18 |
# File 'lib/mod_spox/messages/outgoing/Privmsg.rb', line 14 def initialize(target, , action=false) @target = target = @action = action end |
Instance Attribute Details
#action ⇒ Object (readonly)
message is an action
10 11 12 |
# File 'lib/mod_spox/messages/outgoing/Privmsg.rb', line 10 def action @action end |
#message ⇒ Object (readonly)
the message
8 9 10 |
# File 'lib/mod_spox/messages/outgoing/Privmsg.rb', line 8 def end |
#target ⇒ Object (readonly)
target for the message
6 7 8 |
# File 'lib/mod_spox/messages/outgoing/Privmsg.rb', line 6 def target @target end |
Instance Method Details
#is_action? ⇒ Boolean
is message an action
21 22 23 |
# File 'lib/mod_spox/messages/outgoing/Privmsg.rb', line 21 def is_action? return action end |