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.



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

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



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

def channel
  @channel
end

#nicksObject (readonly)

nicks in the channel



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

def nicks
  @nicks
end

#opsObject (readonly)

ops in the channel



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

def ops
  @ops
end

#voicedObject (readonly)

voiced nicks in channel



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

def voiced
  @voiced
end