Class: Upkeep::Dependencies::CurrentAttribute

Inherits:
Identity
  • Object
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(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