Class: Gem::Guardian::VerificationResult

Inherits:
Data
  • Object
show all
Defined in:
lib/gem/guardian/verifier.rb

Overview

Result object for a single verification attempt.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actual_sha256Object (readonly)

Returns the value of attribute actual_sha256

Returns:

  • (Object)

    the current value of actual_sha256



6
7
8
# File 'lib/gem/guardian/verifier.rb', line 6

def actual_sha256
  @actual_sha256
end

#artifact_pathObject (readonly)

Returns the value of attribute artifact_path

Returns:

  • (Object)

    the current value of artifact_path



6
7
8
# File 'lib/gem/guardian/verifier.rb', line 6

def artifact_path
  @artifact_path
end

#checksum_sourceObject (readonly)

Returns the value of attribute checksum_source

Returns:

  • (Object)

    the current value of checksum_source



6
7
8
# File 'lib/gem/guardian/verifier.rb', line 6

def checksum_source
  @checksum_source
end

#dependencyObject (readonly)

Returns the value of attribute dependency

Returns:

  • (Object)

    the current value of dependency



6
7
8
# File 'lib/gem/guardian/verifier.rb', line 6

def dependency
  @dependency
end

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



6
7
8
# File 'lib/gem/guardian/verifier.rb', line 6

def error
  @error
end

#expected_sha256Object (readonly)

Returns the value of attribute expected_sha256

Returns:

  • (Object)

    the current value of expected_sha256



6
7
8
# File 'lib/gem/guardian/verifier.rb', line 6

def expected_sha256
  @expected_sha256
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



6
7
8
# File 'lib/gem/guardian/verifier.rb', line 6

def status
  @status
end

Instance Method Details

#ok?Boolean

Returns true when the verification succeeded.

Returns:

  • (Boolean)


9
10
11
# File 'lib/gem/guardian/verifier.rb', line 9

def ok?
  status == :ok
end