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, #nil_identity?, #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:, partitioning: nil, absent_by_name: nil) ⇒ WardenUser

Returns a new instance of WardenUser.



282
283
284
285
286
287
288
289
290
291
# File 'lib/upkeep/dependencies.rb', line 282

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