Class: IABConsentString::Consent::VendorConsent
- Inherits:
-
Object
- Object
- IABConsentString::Consent::VendorConsent
- Defined in:
- lib/iab_consent_string/consent/vendor_consent.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#getAllowedPurposes ⇒ Set<Purpose>
The set of allowed purposes which are permitted according to this consent string.
-
#getAllowedPurposesBits ⇒ Integer
An integer equivalent of allowed purpose id bits according to this consent string.
-
#getAllowedPurposesIds ⇒ Set<Integer>
The set of purpose id’s which are permitted according to this consent string.
-
#getCmpId ⇒ Integer
The Consent Manager Provider ID that last updated the consent string.
-
#getCmpVersion ⇒ Integer
The Consent Manager Provider version.
-
#getConsentLanguage ⇒ Char(2)
The two-letter ISO639-1 language code that CMP asked for consent in.
-
#getConsentRecordCreated ⇒ Timestamp
The time (milli since epoch) at which the consent string was created.
-
#getConsentRecordLastUpdated ⇒ Timestamp
The time (milli since epoch) at which the consent string was last updated.
-
#getConsentScreen ⇒ Integer
The screen number in the CMP where consent was given.
-
#getMaxVendorId ⇒ Integer
The maximum VendorId for which consent values are given.
-
#getVendorListVersion ⇒ Integer
Version of vendor list used in most recent consent string update.
-
#getVersion ⇒ Integer
The version of consent string format.
-
#isPurposeAllowed(purpose) ⇒ Boolean
Check wether specified purpose is allowed.
-
#isPurposeIdAllowed(purposeId) ⇒ Boolean
Check wether purpose with specified ID is allowed.
-
#isVendorAllowed(vendorId) ⇒ Boolean
Check wether vendor with specified ID is allowed.
-
#toByteArray ⇒ Array<Byte>
The value of this consent as byte array.
Instance Method Details
#getAllowedPurposes ⇒ Set<Purpose>
Returns the set of allowed purposes which are permitted according to this consent string.
50 51 52 |
# File 'lib/iab_consent_string/consent/vendor_consent.rb', line 50 def getAllowedPurposes raise NotImplementedError end |
#getAllowedPurposesBits ⇒ Integer
Returns an integer equivalent of allowed purpose id bits according to this consent string.
55 56 57 |
# File 'lib/iab_consent_string/consent/vendor_consent.rb', line 55 def getAllowedPurposesBits raise NotImplementedError end |
#getAllowedPurposesIds ⇒ Set<Integer>
Returns the set of purpose id’s which are permitted according to this consent string.
45 46 47 |
# File 'lib/iab_consent_string/consent/vendor_consent.rb', line 45 def getAllowedPurposesIds raise NotImplementedError end |
#getCmpId ⇒ Integer
Returns the Consent Manager Provider ID that last updated the consent string.
20 21 22 |
# File 'lib/iab_consent_string/consent/vendor_consent.rb', line 20 def getCmpId raise NotImplementedError end |
#getCmpVersion ⇒ Integer
Returns the Consent Manager Provider version.
25 26 27 |
# File 'lib/iab_consent_string/consent/vendor_consent.rb', line 25 def getCmpVersion raise NotImplementedError end |
#getConsentLanguage ⇒ Char(2)
Returns the two-letter ISO639-1 language code that CMP asked for consent in.
35 36 37 |
# File 'lib/iab_consent_string/consent/vendor_consent.rb', line 35 def getConsentLanguage raise NotImplementedError end |
#getConsentRecordCreated ⇒ Timestamp
Returns the time (milli since epoch) at which the consent string was created.
10 11 12 |
# File 'lib/iab_consent_string/consent/vendor_consent.rb', line 10 def getConsentRecordCreated raise NotImplementedError end |
#getConsentRecordLastUpdated ⇒ Timestamp
Returns the time (milli since epoch) at which the consent string was last updated.
15 16 17 |
# File 'lib/iab_consent_string/consent/vendor_consent.rb', line 15 def getConsentRecordLastUpdated raise NotImplementedError end |
#getConsentScreen ⇒ Integer
Returns the screen number in the CMP where consent was given.
30 31 32 |
# File 'lib/iab_consent_string/consent/vendor_consent.rb', line 30 def getConsentScreen raise NotImplementedError end |
#getMaxVendorId ⇒ Integer
Returns the maximum VendorId for which consent values are given.
60 61 62 |
# File 'lib/iab_consent_string/consent/vendor_consent.rb', line 60 def getMaxVendorId raise NotImplementedError end |
#getVendorListVersion ⇒ Integer
Returns version of vendor list used in most recent consent string update.
40 41 42 |
# File 'lib/iab_consent_string/consent/vendor_consent.rb', line 40 def getVendorListVersion raise NotImplementedError end |
#getVersion ⇒ Integer
Returns the version of consent string format.
5 6 7 |
# File 'lib/iab_consent_string/consent/vendor_consent.rb', line 5 def getVersion raise NotImplementedError end |
#isPurposeAllowed(purpose) ⇒ Boolean
Check wether specified purpose is allowed
74 75 76 |
# File 'lib/iab_consent_string/consent/vendor_consent.rb', line 74 def isPurposeAllowed(purpose) raise NotImplementedError end |
#isPurposeIdAllowed(purposeId) ⇒ Boolean
Check wether purpose with specified ID is allowed
67 68 69 |
# File 'lib/iab_consent_string/consent/vendor_consent.rb', line 67 def isPurposeIdAllowed(purposeId) raise NotImplementedError end |
#isVendorAllowed(vendorId) ⇒ Boolean
Check wether vendor with specified ID is allowed
81 82 83 |
# File 'lib/iab_consent_string/consent/vendor_consent.rb', line 81 def isVendorAllowed(vendorId) raise NotImplementedError end |
#toByteArray ⇒ Array<Byte>
Returns the value of this consent as byte array.
86 87 88 |
# File 'lib/iab_consent_string/consent/vendor_consent.rb', line 86 def toByteArray raise NotImplementedError end |