Class: Gem::Guardian::VerificationResult
- Inherits:
-
Data
- Object
- Data
- Gem::Guardian::VerificationResult
- Defined in:
- lib/gem/guardian/verifier.rb
Overview
Result object for a single verification attempt.
Instance Attribute Summary collapse
-
#actual_sha256 ⇒ Object
readonly
Returns the value of attribute actual_sha256.
-
#artifact_path ⇒ Object
readonly
Returns the value of attribute artifact_path.
-
#checksum_source ⇒ Object
readonly
Returns the value of attribute checksum_source.
-
#dependency ⇒ Object
readonly
Returns the value of attribute dependency.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#expected_sha256 ⇒ Object
readonly
Returns the value of attribute expected_sha256.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#ok? ⇒ Boolean
Returns true when the verification succeeded.
Instance Attribute Details
#actual_sha256 ⇒ Object (readonly)
Returns the value of attribute actual_sha256
6 7 8 |
# File 'lib/gem/guardian/verifier.rb', line 6 def actual_sha256 @actual_sha256 end |
#artifact_path ⇒ Object (readonly)
Returns the value of attribute artifact_path
6 7 8 |
# File 'lib/gem/guardian/verifier.rb', line 6 def artifact_path @artifact_path end |
#checksum_source ⇒ Object (readonly)
Returns the value of attribute checksum_source
6 7 8 |
# File 'lib/gem/guardian/verifier.rb', line 6 def checksum_source @checksum_source end |
#dependency ⇒ Object (readonly)
Returns the value of attribute dependency
6 7 8 |
# File 'lib/gem/guardian/verifier.rb', line 6 def dependency @dependency end |
#error ⇒ Object (readonly)
Returns the value of attribute error
6 7 8 |
# File 'lib/gem/guardian/verifier.rb', line 6 def error @error end |
#expected_sha256 ⇒ Object (readonly)
Returns the value of attribute expected_sha256
6 7 8 |
# File 'lib/gem/guardian/verifier.rb', line 6 def expected_sha256 @expected_sha256 end |
#status ⇒ Object (readonly)
Returns the value of attribute 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.
9 10 11 |
# File 'lib/gem/guardian/verifier.rb', line 9 def ok? status == :ok end |