Module: BrandContext
- Defined in:
- lib/wingify/utils/brand_context.rb
Overview
BrandContext holds a single runtime flag that is set ONCE at init() time, before any service (Logger, SettingsService, etc.) is initialized. All brand-specific decisions (hostnames, SDK name, log prefix) read this flag.
Class Method Summary collapse
-
.is_via_vwo? ⇒ Boolean
True if the active brand is VWO.
-
.set_is_via_vwo(val) ⇒ Object
Set the brand flag.
Class Method Details
.is_via_vwo? ⇒ Boolean
Returns true if the active brand is VWO.
29 30 31 |
# File 'lib/wingify/utils/brand_context.rb', line 29 def is_via_vwo? @is_via_vwo end |
.set_is_via_vwo(val) ⇒ Object
Set the brand flag. Must be called as the very first step inside init().
24 25 26 |
# File 'lib/wingify/utils/brand_context.rb', line 24 def set_is_via_vwo(val) @is_via_vwo = val == true end |