Class: IRCSupport::Message::Join

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) ⇒ Join

Returns a new instance of Join.



315
316
317
318
319
# File 'lib/ircsupport/message.rb', line 315

def initialize(args)
  super(args)
  @joiner = args[:prefix]
  @channel = args[:args][0]
end

Instance Attribute Details

#channelString

Returns The name of the channel being joined.

Returns:

  • (String)

    The name of the channel being joined.



312
313
314
# File 'lib/ircsupport/message.rb', line 312

def channel
  @channel
end

#joinerString

Returns The user who is joining.

Returns:

  • (String)

    The user who is joining.



309
310
311
# File 'lib/ircsupport/message.rb', line 309

def joiner
  @joiner
end