Class: IABConsentString::Consent::Range::RangeEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/iab_consent_string/consent/range/range_entry.rb

Direct Known Subclasses

SingleRangeEntry, StartEndRangeEntry

Instance Method Summary collapse

Instance Method Details

#appendTo(buffer, currentOffset) ⇒ Integer

Append this range entry to the bit buffer

Parameters:

  • buffer (Bits)

    bit buffer

  • currentOffset (Integer)

    current offset in the buffer

Returns:

  • (Integer)

    new offset

Raises:

  • (NotImplementedError)


9
10
11
# File 'lib/iab_consent_string/consent/range/range_entry.rb', line 9

def appendTo(buffer, currentOffset)
  raise NotImplementedError
end

#valid(maxVendorId) ⇒ Boolean

Check if range entry is valid for the specified max vendor id

Parameters:

  • maxVendorId (Integer)

    max vendor id

Returns:

  • (Boolean)

    true if range entry is valid, false otherwise

Raises:

  • (NotImplementedError)


16
17
18
# File 'lib/iab_consent_string/consent/range/range_entry.rb', line 16

def valid(maxVendorId)
  raise NotImplementedError
end