Module: Kameleoon::Configuration::ConsentBlockingBehaviour
- Defined in:
- lib/kameleoon/configuration/settings.rb
Overview
ConsentBlockingBehaviour
Constant Summary collapse
- PARTIALLY_BLOCKED =
0- COMPLETELY_BLOCKED =
1- PARTIALLY_BLOCKED_STR =
'PARTIALLY_BLOCK'- COMPLETELY_BLOCKED_STR =
'FULLY_BLOCK'
Class Method Summary collapse
Class Method Details
.from_str(str) ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/kameleoon/configuration/settings.rb', line 43 def self.from_str(str) case str when PARTIALLY_BLOCKED_STR PARTIALLY_BLOCKED when COMPLETELY_BLOCKED_STR COMPLETELY_BLOCKED else Logging::KameleoonLogger.warning("Unexpected consent blocking type '%s'", str) PARTIALLY_BLOCKED end end |