Class: Upkeep::Dependencies::WardenUser

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(scope:, user:) ⇒ WardenUser

Returns a new instance of WardenUser.



269
270
271
272
273
274
275
276
# File 'lib/upkeep/dependencies.rb', line 269

def initialize(scope:, user:)
  super(
    source: :warden_user,
    key: scope.to_s,
    value: Dependencies.model_identity(user),
    metadata: Dependencies.(user).merge(scope: scope.to_s)
  )
end