Class: Capsium::Package::Security::ChecksumMismatch
- Inherits:
-
Data
- Object
- Data
- Capsium::Package::Security::ChecksumMismatch
- Defined in:
- sig/capsium/package/security.rbs,
lib/capsium/package/security.rb
Overview
A file whose SHA-256 does not match the recorded checksum.
Instance Attribute Summary collapse
-
#actual ⇒ Object
readonly
Returns the value of attribute actual.
-
#expected ⇒ Object
readonly
Returns the value of attribute expected.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize ⇒ ChecksumMismatch
constructor
A new instance of ChecksumMismatch.
- #message ⇒ String
Constructor Details
#initialize ⇒ ChecksumMismatch
Returns a new instance of ChecksumMismatch.
16 |
# File 'sig/capsium/package/security.rbs', line 16
def initialize: (path: String path, expected: String expected, actual: String actual) -> void
|
Instance Attribute Details
#actual ⇒ Object (readonly)
Returns the value of attribute actual
18 19 20 |
# File 'lib/capsium/package/security.rb', line 18 def actual @actual end |
#expected ⇒ Object (readonly)
Returns the value of attribute expected
18 19 20 |
# File 'lib/capsium/package/security.rb', line 18 def expected @expected end |
#path ⇒ Object (readonly)
Returns the value of attribute path
18 19 20 |
# File 'lib/capsium/package/security.rb', line 18 def path @path end |
Instance Method Details
#message ⇒ String
19 20 21 |
# File 'lib/capsium/package/security.rb', line 19 def "checksum mismatch: #{path}" end |