Class: IRCSupport::Message::DCC
- Inherits:
-
IRCSupport::Message
- Object
- IRCSupport::Message
- IRCSupport::Message::DCC
- Defined in:
- lib/ircsupport/message.rb
Defined Under Namespace
Classes: Accept, Chat, Resume, Send
Instance Attribute Summary collapse
-
#dcc_args ⇒ String
The argument string to the DCC message.
-
#dcc_type ⇒ Symbol
The type of the DCC message.
-
#sender ⇒ String
The sender of the DCC message.
Attributes inherited from IRCSupport::Message
Instance Method Summary collapse
-
#initialize(args) ⇒ DCC
constructor
A new instance of DCC.
Methods inherited from IRCSupport::Message
Constructor Details
#initialize(args) ⇒ DCC
Returns a new instance of DCC.
196 197 198 199 200 201 202 |
# File 'lib/ircsupport/message.rb', line 196 def initialize(args) super(args) @sender = args[:prefix] @dcc_args = args[:args][1] @dcc_type = args[:dcc_type].downcase.to_sym @type = "dcc_#@dcc_type".to_sym end |
Instance Attribute Details
#dcc_args ⇒ String
Returns The argument string to the DCC message.
193 194 195 |
# File 'lib/ircsupport/message.rb', line 193 def dcc_args @dcc_args end |
#dcc_type ⇒ Symbol
Returns The type of the DCC message.
190 191 192 |
# File 'lib/ircsupport/message.rb', line 190 def dcc_type @dcc_type end |
#sender ⇒ String
Returns The sender of the DCC message.
187 188 189 |
# File 'lib/ircsupport/message.rb', line 187 def sender @sender end |