class IABConsentString::Consent::VendorConsent

Public Instance Methods

getAllowedPurposes() click to toggle source

@return [Set<Purpose>] the set of allowed purposes which are permitted according to this consent string

# File lib/iab_consent_string/consent/vendor_consent.rb, line 50
def getAllowedPurposes
  raise NotImplementedError
end
getAllowedPurposesBits() click to toggle source

@return [Integer] an integer equivalent of allowed purpose id bits according to this consent string

# File lib/iab_consent_string/consent/vendor_consent.rb, line 55
def getAllowedPurposesBits
  raise NotImplementedError
end
getAllowedPurposesIds() click to toggle source

@return [Set<Integer>] the set of purpose id's which are permitted according to this consent string

# File lib/iab_consent_string/consent/vendor_consent.rb, line 45
def getAllowedPurposesIds
  raise NotImplementedError
end
getCmpId() click to toggle source

@return [Integer] the Consent Manager Provider ID that last updated the consent string

# File lib/iab_consent_string/consent/vendor_consent.rb, line 20
def getCmpId
  raise NotImplementedError
end
getCmpVersion() click to toggle source

@return [Integer] the Consent Manager Provider version

# File lib/iab_consent_string/consent/vendor_consent.rb, line 25
def getCmpVersion
  raise NotImplementedError
end
getConsentLanguage() click to toggle source

@return [Char(2)] the two-letter ISO639-1 language code that CMP asked for consent in

# File lib/iab_consent_string/consent/vendor_consent.rb, line 35
def getConsentLanguage
  raise NotImplementedError
end
getConsentRecordCreated() click to toggle source

@return [Timestamp] the time (milli since epoch) at which the consent string was created

# File lib/iab_consent_string/consent/vendor_consent.rb, line 10
def getConsentRecordCreated
  raise NotImplementedError
end
getConsentRecordLastUpdated() click to toggle source

@return [Timestamp] the time (milli since epoch) at which the consent string was last updated

# File lib/iab_consent_string/consent/vendor_consent.rb, line 15
def getConsentRecordLastUpdated
  raise NotImplementedError
end
getConsentScreen() click to toggle source

@return [Integer] the screen number in the CMP where consent was given

# File lib/iab_consent_string/consent/vendor_consent.rb, line 30
def getConsentScreen
  raise NotImplementedError
end
getMaxVendorId() click to toggle source

@return [Integer] the maximum VendorId for which consent values are given.

# File lib/iab_consent_string/consent/vendor_consent.rb, line 60
def getMaxVendorId
  raise NotImplementedError
end
getVendorListVersion() click to toggle source

@return [Integer] version of vendor list used in most recent consent string update.

# File lib/iab_consent_string/consent/vendor_consent.rb, line 40
def getVendorListVersion
  raise NotImplementedError
end
getVersion() click to toggle source

@return [Integer] the version of consent string format

# File lib/iab_consent_string/consent/vendor_consent.rb, line 5
def getVersion
  raise NotImplementedError
end
isPurposeAllowed(purpose) click to toggle source

Check wether specified purpose is allowed @param purpose [Purpose] purpose to check @return [Boolean] true if purpose is allowed in this consent, false otherwise

# File lib/iab_consent_string/consent/vendor_consent.rb, line 74
def isPurposeAllowed(purpose)
  raise NotImplementedError
end
isPurposeIdAllowed(purposeId) click to toggle source

Check wether purpose with specified ID is allowed @param purposeId [Integer] purpose ID @return [Boolean] true if purpose is allowed in this consent, false otherwise

# File lib/iab_consent_string/consent/vendor_consent.rb, line 67
def isPurposeIdAllowed(purposeId)
  raise NotImplementedError
end
isVendorAllowed(vendorId) click to toggle source

Check wether vendor with specified ID is allowed @param vendorId [Integer] vendor ID @return [Boolean] true if vendor is allowed in this consent, false otherwise

# File lib/iab_consent_string/consent/vendor_consent.rb, line 81
def isVendorAllowed(vendorId)
  raise NotImplementedError
end
toByteArray() click to toggle source

@return [Array<Byte>] the value of this consent as byte array

# File lib/iab_consent_string/consent/vendor_consent.rb, line 86
def toByteArray
  raise NotImplementedError
end