Class: Upkeep::Dependencies::SessionValue
- Defined in:
- lib/upkeep/dependencies.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(key:, value:) ⇒ SessionValue
constructor
A new instance of SessionValue.
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:) ⇒ SessionValue
Returns a new instance of SessionValue.
291 292 293 294 295 296 297 298 |
# File 'lib/upkeep/dependencies.rb', line 291 def initialize(key:, value:) super( source: :session, key: key.to_s, value: Dependencies.private_fingerprint(value), metadata: { key: key.to_s, value_class: value.class.name } ) end |