Class: IDMask
- Inherits:
-
Object
- Object
- IDMask
- Defined in:
- lib/libowl/aggregator_rules.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#mask ⇒ Object
Returns the value of attribute mask.
Instance Method Summary collapse
-
#initialize(id, mask = 2**64-1) ⇒ IDMask
constructor
Takes in id and mask numbers.
Constructor Details
#initialize(id, mask = 2**64-1) ⇒ IDMask
Takes in id and mask numbers
6 7 8 9 |
# File 'lib/libowl/aggregator_rules.rb', line 6 def initialize(id, mask = 2**64-1) @id = packuint128(id) @mask = packuint128(mask) end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/libowl/aggregator_rules.rb', line 4 def id @id end |
#mask ⇒ Object
Returns the value of attribute mask.
4 5 6 |
# File 'lib/libowl/aggregator_rules.rb', line 4 def mask @mask end |