Class: ModSpox::Messages::Outgoing::Who
- Inherits:
-
Object
- Object
- ModSpox::Messages::Outgoing::Who
- Defined in:
- lib/mod_spox/messages/outgoing/Who.rb
Instance Attribute Summary collapse
-
#mask ⇒ Object
readonly
mask to match.
-
#op_only ⇒ Object
readonly
return only ops.
Instance Method Summary collapse
-
#initialize(mask, op_only = false) ⇒ Who
constructor
- mask
- mask of clients to match only_ops
-
only return operators Query for information matching given mask.
- #only_ops? ⇒ Boolean
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
#mask ⇒ Object (readonly)
mask to match
6 7 8 |
# File 'lib/mod_spox/messages/outgoing/Who.rb', line 6 def mask @mask end |
#op_only ⇒ Object (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
17 18 19 |
# File 'lib/mod_spox/messages/outgoing/Who.rb', line 17 def only_ops? return op_only end |