Class: Capsium::Registry::Entry
- Inherits:
-
Data
- Object
- Data
- Capsium::Registry::Entry
- Defined in:
- lib/capsium/registry.rb,
sig/capsium/registry.rbs
Overview
One indexed version of a registry package.
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#guid ⇒ Object
readonly
Returns the value of attribute guid.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#sha256 ⇒ Object
readonly
Returns the value of attribute sha256.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Class Method Summary collapse
Instance Method Summary collapse
-
#cap_file_name ⇒ String
The canonical store file name for this entry's .cap.
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file
52 53 54 |
# File 'lib/capsium/registry.rb', line 52 def file @file end |
#guid ⇒ Object (readonly)
Returns the value of attribute guid
52 53 54 |
# File 'lib/capsium/registry.rb', line 52 def guid @guid end |
#name ⇒ Object (readonly)
Returns the value of attribute name
52 53 54 |
# File 'lib/capsium/registry.rb', line 52 def name @name end |
#sha256 ⇒ Object (readonly)
Returns the value of attribute sha256
52 53 54 |
# File 'lib/capsium/registry.rb', line 52 def sha256 @sha256 end |
#size ⇒ Object (readonly)
Returns the value of attribute size
52 53 54 |
# File 'lib/capsium/registry.rb', line 52 def size @size end |
#version ⇒ Object (readonly)
Returns the value of attribute version
52 53 54 |
# File 'lib/capsium/registry.rb', line 52 def version @version end |
Class Method Details
.new ⇒ Object
43 |
# File 'sig/capsium/registry.rbs', line 43
def self.new: (guid: String, name: String, version: Package::Version,
|
Instance Method Details
#cap_file_name ⇒ String
The canonical store file name for this entry's .cap.
54 |
# File 'lib/capsium/registry.rb', line 54 def cap_file_name = "#{name}-#{version}.cap" |