Class: Upkeep::Dependencies::WardenUser
- Defined in:
- lib/upkeep/dependencies.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(scope:, user:, partitioning: nil, absent_by_name: nil) ⇒ WardenUser
constructor
A new instance of WardenUser.
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 |