Class: IRCSupport::Message::Invite

Inherits:
IRCSupport::Message show all
Defined in:
lib/ircsupport/message.rb

Instance Attribute Summary collapse

Attributes inherited from IRCSupport::Message

#args, #command, #prefix

Instance Method Summary collapse

Methods inherited from IRCSupport::Message

#type

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

#channelString

Returns The name of the channel you’re being invited to.

Returns:

  • (String)

    The name of the channel you’re being invited to.



297
298
299
# File 'lib/ircsupport/message.rb', line 297

def channel
  @channel
end

#inviterString

Returns The user who sent the invite.

Returns:

  • (String)

    The user who sent the invite.



294
295
296
# File 'lib/ircsupport/message.rb', line 294

def inviter
  @inviter
end