Class: Upkeep::Dependencies::Base
- Inherits:
-
Object
- Object
- Upkeep::Dependencies::Base
show all
- Defined in:
- lib/upkeep/dependencies.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(source:, key:, metadata: {}) ⇒ Base
Returns a new instance of Base.
11
12
13
14
15
|
# File 'lib/upkeep/dependencies.rb', line 11
def initialize(source:, key:, metadata: {})
@source = source
@key = key
@metadata = metadata
end
|
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
9
10
11
|
# File 'lib/upkeep/dependencies.rb', line 9
def key
@key
end
|
Returns the value of attribute metadata.
9
10
11
|
# File 'lib/upkeep/dependencies.rb', line 9
def metadata
@metadata
end
|
#source ⇒ Object
Returns the value of attribute source.
9
10
11
|
# File 'lib/upkeep/dependencies.rb', line 9
def source
@source
end
|
Instance Method Details
#cache_key ⇒ Object
17
18
19
|
# File 'lib/upkeep/dependencies.rb', line 17
def cache_key
[source, key]
end
|
#identity? ⇒ Boolean
25
26
27
|
# File 'lib/upkeep/dependencies.rb', line 25
def identity?
false
end
|
#identity_key ⇒ Object
29
30
31
|
# File 'lib/upkeep/dependencies.rb', line 29
def identity_key
nil
end
|
#matches_change?(_change) ⇒ Boolean
21
22
23
|
# File 'lib/upkeep/dependencies.rb', line 21
def matches_change?(_change)
false
end
|
#narrow_frame_safe? ⇒ Boolean
41
42
43
|
# File 'lib/upkeep/dependencies.rb', line 41
def narrow_frame_safe?
false
end
|
#precision ⇒ Object
37
38
39
|
# File 'lib/upkeep/dependencies.rb', line 37
def precision
:unknown
end
|
#to_h ⇒ Object
45
46
47
48
49
50
51
52
53
|
# File 'lib/upkeep/dependencies.rb', line 45
def to_h
{
source: source,
key: key,
visibility: visibility,
precision: precision,
metadata: metadata
}
end
|
#visibility ⇒ Object
33
34
35
|
# File 'lib/upkeep/dependencies.rb', line 33
def visibility
:public
end
|