Class: ModSpox::Messages::Incoming::Who
- Defined in:
- lib/mod_spox/messages/incoming/Who.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
where nicks are from (channel if who’d a channel, nick if who’d a single nick).
-
#nicks ⇒ Object
readonly
array of nicks.
Attributes inherited from Message
Instance Method Summary collapse
-
#initialize(raw, location, nicks) ⇒ Who
constructor
A new instance of Who.
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
#location ⇒ Object (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 |
#nicks ⇒ Object (readonly)
array of nicks
7 8 9 |
# File 'lib/mod_spox/messages/incoming/Who.rb', line 7 def nicks @nicks end |