Class: WarningShot::IntegrityResolver::FileResource Private

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#digestObject

Returns the value of attribute digest

Returns:

  • (Object)

    the current value of digest



13
14
15
# File 'lib/resolvers/integrity_resolver.rb', line 13

def digest
  @digest
end

#digest_methodObject

Returns the value of attribute digest_method

Returns:

  • (Object)

    the current value of digest_method



13
14
15
# File 'lib/resolvers/integrity_resolver.rb', line 13

def digest_method
  @digest_method
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



13
14
15
# File 'lib/resolvers/integrity_resolver.rb', line 13

def source
  @source
end

#targetObject

Returns the value of attribute target

Returns:

  • (Object)

    the current value of 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.

Returns:

  • (Boolean)


14
# File 'lib/resolvers/integrity_resolver.rb', line 14

def exists?;File.exists?(File.expand_path(target.path));end