Class: Upkeep::Dependencies::CurrentAttribute
- Defined in:
- lib/upkeep/dependencies.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(owner:, name:, value:) ⇒ CurrentAttribute
constructor
A new instance of CurrentAttribute.
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(owner:, name:, value:) ⇒ CurrentAttribute
Returns a new instance of CurrentAttribute.
280 281 282 283 284 285 286 287 |
# File 'lib/upkeep/dependencies.rb', line 280 def initialize(owner:, name:, value:) super( source: :current_attribute, key: "#{owner}.#{name}", value: Dependencies.canonical_identity(value), metadata: { owner: owner.to_s, name: name.to_s } ) end |