Class: ModSpox::Messages::Incoming::Names

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

Instance Attribute Summary collapse

Attributes inherited from Message

#raw_content, #time

Instance Method Summary collapse

Constructor Details

#initialize(raw, channel, nicks, ops, voiced) ⇒ Names

Returns a new instance of Names.



14
15
16
17
18
19
20
# File 'lib/mod_spox/messages/incoming/Names.rb', line 14

def initialize(raw, channel, nicks, ops, voiced)
    super(raw)
    @channel = channel
    @nicks = nicks
    @ops = ops
    @voiced = voiced
end

Instance Attribute Details

#channelObject (readonly)

channel names are from



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

def channel
  @channel
end

#nicksObject (readonly)

nicks in the channel



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

def nicks
  @nicks
end

#opsObject (readonly)

ops in the channel



11
12
13
# File 'lib/mod_spox/messages/incoming/Names.rb', line 11

def ops
  @ops
end

#voicedObject (readonly)

voiced nicks in channel



13
14
15
# File 'lib/mod_spox/messages/incoming/Names.rb', line 13

def voiced
  @voiced
end