Class: WarningShot::IntegrityResolver::FileResource Private
- Defined in:
- lib/resolvers/integrity_resolver.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Define FileResource struct
Instance Attribute Summary collapse
-
#digest ⇒ Object
Returns the value of attribute digest.
-
#digest_method ⇒ Object
Returns the value of attribute digest_method.
-
#source ⇒ Object
Returns the value of attribute source.
-
#target ⇒ Object
Returns the value of attribute target.
Instance Method Summary collapse
- #exists? ⇒ Boolean private
Instance Attribute Details
#digest ⇒ Object
Returns the value of attribute digest
13 14 15 |
# File 'lib/resolvers/integrity_resolver.rb', line 13 def digest @digest end |
#digest_method ⇒ Object
Returns the value of attribute digest_method
13 14 15 |
# File 'lib/resolvers/integrity_resolver.rb', line 13 def digest_method @digest_method end |
#source ⇒ Object
Returns the value of attribute source
13 14 15 |
# File 'lib/resolvers/integrity_resolver.rb', line 13 def source @source end |
#target ⇒ Object
Returns the value of attribute target
13 14 15 |
# File 'lib/resolvers/integrity_resolver.rb', line 13 def target @target end |
Instance Method Details
#exists? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
14 |
# File 'lib/resolvers/integrity_resolver.rb', line 14 def exists?;File.exists?(File.(target.path));end |