Module: SnowplowRubyDuid::Configuration

Defined in:
lib/snowplow_ruby_duid/configuration.rb

Overview

This is the configuration object that is used for two additional cookie settings that can’t be deferred from the request/response objects

Class Method Summary collapse

Class Method Details

.same_siteObject



22
23
24
# File 'lib/snowplow_ruby_duid/configuration.rb', line 22

def self.same_site
  @same_site
end

.same_site=(value) ⇒ Object



12
13
14
15
16
# File 'lib/snowplow_ruby_duid/configuration.rb', line 12

def self.same_site=(value)
  raise "Not allowed value #{value}, use one of these: #{@allowed}" unless @allowed.include?(value)

  @same_site = value
end

.secureObject



26
27
28
# File 'lib/snowplow_ruby_duid/configuration.rb', line 26

def self.secure
  @secure
end

.secure=(value) ⇒ Object



18
19
20
# File 'lib/snowplow_ruby_duid/configuration.rb', line 18

def self.secure=(value)
  @secure = value
end