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
37 38 39 |
# File 'lib/kotoshu/integrity/manifest.rb', line 37 def language @language end |
#license ⇒ Object
Returns the value of attribute license
37 38 39 |
# File 'lib/kotoshu/integrity/manifest.rb', line 37 def license @license end |
#path ⇒ Object
Returns the value of attribute path
37 38 39 |
# File 'lib/kotoshu/integrity/manifest.rb', line 37 def path @path end |
#sha256 ⇒ Object
Returns the value of attribute sha256
37 38 39 |
# File 'lib/kotoshu/integrity/manifest.rb', line 37 def sha256 @sha256 end |
#size ⇒ Object
Returns the value of attribute size
37 38 39 |
# File 'lib/kotoshu/integrity/manifest.rb', line 37 def size @size end |
#source ⇒ Object
Returns the value of attribute source
37 38 39 |
# File 'lib/kotoshu/integrity/manifest.rb', line 37 def source @source end |
#type ⇒ Object
Returns the value of attribute type
37 38 39 |
# File 'lib/kotoshu/integrity/manifest.rb', line 37 def type @type end |
Instance Method Details
#verify?(content) ⇒ Boolean
39 40 41 |
# File 'lib/kotoshu/integrity/manifest.rb', line 39 def verify?(content) Digest::SHA256.hexdigest(content) == sha256 end |