Class: ModSpox::Messages::Outgoing::Who

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mask, op_only = false) ⇒ Who

mask

mask of clients to match

only_ops

only return operators

Query for information matching given mask



12
13
14
15
# File 'lib/mod_spox/messages/outgoing/Who.rb', line 12

def initialize(mask, op_only=false)
    @mask = mask
    @op_only = op_only
end

Instance Attribute Details

#maskObject (readonly)

mask to match



6
7
8
# File 'lib/mod_spox/messages/outgoing/Who.rb', line 6

def mask
  @mask
end

#op_onlyObject (readonly)

return only ops



8
9
10
# File 'lib/mod_spox/messages/outgoing/Who.rb', line 8

def op_only
  @op_only
end

Instance Method Details

#only_ops?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/mod_spox/messages/outgoing/Who.rb', line 17

def only_ops?
    return op_only
end