Class: Kotoshu::Integrity::Manifest::Entry
- Inherits:
-
Struct
- Object
- Struct
- Kotoshu::Integrity::Manifest::Entry
- Defined in:
- lib/kotoshu/integrity/manifest.rb
Instance Attribute Summary collapse
-
#language ⇒ Object
Returns the value of attribute language.
-
#license ⇒ Object
Returns the value of attribute license.
-
#path ⇒ Object
Returns the value of attribute path.
-
#sha256 ⇒ Object
Returns the value of attribute sha256.
-
#size ⇒ Object
Returns the value of attribute size.
-
#source ⇒ Object
Returns the value of attribute source.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#language ⇒ Object
Returns the value of attribute language
36 37 38 |
# File 'lib/kotoshu/integrity/manifest.rb', line 36 def language @language end |
#license ⇒ Object
Returns the value of attribute license
36 37 38 |
# File 'lib/kotoshu/integrity/manifest.rb', line 36 def license @license end |
#path ⇒ Object
Returns the value of attribute path
36 37 38 |
# File 'lib/kotoshu/integrity/manifest.rb', line 36 def path @path end |
#sha256 ⇒ Object
Returns the value of attribute sha256
36 37 38 |
# File 'lib/kotoshu/integrity/manifest.rb', line 36 def sha256 @sha256 end |
#size ⇒ Object
Returns the value of attribute size
36 37 38 |
# File 'lib/kotoshu/integrity/manifest.rb', line 36 def size @size end |
#source ⇒ Object
Returns the value of attribute source
36 37 38 |
# File 'lib/kotoshu/integrity/manifest.rb', line 36 def source @source end |
#type ⇒ Object
Returns the value of attribute type
36 37 38 |
# File 'lib/kotoshu/integrity/manifest.rb', line 36 def type @type end |
Instance Method Details
#verify?(content) ⇒ Boolean
38 39 40 |
# File 'lib/kotoshu/integrity/manifest.rb', line 38 def verify?(content) Digest::SHA256.hexdigest(content) == sha256 end |