Class: Upkeep::Dependencies::CookieValue

Inherits:
Identity show all
Defined in:
lib/upkeep/dependencies.rb

Instance Attribute Summary

Attributes inherited from Base

#key, #metadata, #source

Instance Method Summary collapse

Methods inherited from Identity

#identity?, #identity_key, #precision, #visibility

Methods inherited from Base

#cache_key, #identity?, #identity_key, #matches_change?, #narrow_frame_safe?, #precision, #to_h, #visibility

Constructor Details

#initialize(key:, value:) ⇒ CookieValue

Returns a new instance of CookieValue.



302
303
304
305
306
307
308
309
# File 'lib/upkeep/dependencies.rb', line 302

def initialize(key:, value:)
  super(
    source: :cookie,
    key: key.to_s,
    value: Dependencies.private_fingerprint(value),
    metadata: { key: key.to_s, value_class: value.class.name }
  )
end