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