Class: IRCSupport::Message::Invite
- Inherits:
-
IRCSupport::Message
- Object
- IRCSupport::Message
- IRCSupport::Message::Invite
- Defined in:
- lib/ircsupport/message.rb
Instance Attribute Summary collapse
-
#channel ⇒ String
The name of the channel you’re being invited to.
-
#inviter ⇒ String
The user who sent the invite.
Attributes inherited from IRCSupport::Message
Instance Method Summary collapse
-
#initialize(args) ⇒ Invite
constructor
A new instance of Invite.
Methods inherited from IRCSupport::Message
Constructor Details
#initialize(args) ⇒ Invite
Returns a new instance of Invite.
300 301 302 303 304 |
# File 'lib/ircsupport/message.rb', line 300 def initialize(args) super(args) @inviter = args[:prefix] @channel = args[:args][1] end |
Instance Attribute Details
#channel ⇒ String
Returns The name of the channel you’re being invited to.
297 298 299 |
# File 'lib/ircsupport/message.rb', line 297 def channel @channel end |
#inviter ⇒ String
Returns The user who sent the invite.
294 295 296 |
# File 'lib/ircsupport/message.rb', line 294 def inviter @inviter end |