Class: ModSpox::Messages::Incoming::Who

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

Instance Attribute Summary collapse

Attributes inherited from Message

#raw_content, #time

Instance Method Summary collapse

Constructor Details

#initialize(raw, location, nicks) ⇒ Who

Returns a new instance of Who.



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

def initialize(raw, location, nicks)
    super(raw)
    @location = location
    @nicks = nicks
end

Instance Attribute Details

#locationObject (readonly)

where nicks are from (channel if who’d a channel, nick if who’d a single nick)



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

def location
  @location
end

#nicksObject (readonly)

array of nicks



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

def nicks
  @nicks
end