Class: ModSpox::Messages::Incoming::Join

Inherits:
Message
  • Object
show all
Defined in:
lib/mod_spox/messages/incoming/Join.rb

Instance Attribute Summary collapse

Attributes inherited from Message

#raw_content, #time

Instance Method Summary collapse

Constructor Details

#initialize(raw, channel, nick) ⇒ Join

Returns a new instance of Join.



11
12
13
14
15
# File 'lib/mod_spox/messages/incoming/Join.rb', line 11

def initialize(raw, channel, nick)
    super(raw)
    @channel = channel
    @nick = nick
end

Instance Attribute Details

#channelObject (readonly)

channel that nick joined



7
8
9
# File 'lib/mod_spox/messages/incoming/Join.rb', line 7

def channel
  @channel
end

#nickObject (readonly)

nick that joined channel



9
10
11
# File 'lib/mod_spox/messages/incoming/Join.rb', line 9

def nick
  @nick
end