Class: Upkeep::Dependencies::RequestValue

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:) ⇒ RequestValue

Returns a new instance of RequestValue.



313
314
315
316
317
318
319
320
# File 'lib/upkeep/dependencies.rb', line 313

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