Class: IDMask

Inherits:
Object
  • Object
show all
Defined in:
lib/libowl/aggregator_rules.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/libowl/aggregator_rules.rb', line 4

def id
  @id
end

#maskObject

Returns the value of attribute mask.



4
5
6
# File 'lib/libowl/aggregator_rules.rb', line 4

def mask
  @mask
end