Class: Capsium::Registry::Entry

Inherits:
Data
  • Object
show all
Defined in:
lib/capsium/registry.rb,
sig/capsium/registry.rbs

Overview

One indexed version of a registry package.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



52
53
54
# File 'lib/capsium/registry.rb', line 52

def file
  @file
end

#guidObject (readonly)

Returns the value of attribute guid

Returns:

  • (Object)

    the current value of guid



52
53
54
# File 'lib/capsium/registry.rb', line 52

def guid
  @guid
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



52
53
54
# File 'lib/capsium/registry.rb', line 52

def name
  @name
end

#sha256Object (readonly)

Returns the value of attribute sha256

Returns:

  • (Object)

    the current value of sha256



52
53
54
# File 'lib/capsium/registry.rb', line 52

def sha256
  @sha256
end

#sizeObject (readonly)

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



52
53
54
# File 'lib/capsium/registry.rb', line 52

def size
  @size
end

#versionObject (readonly)

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



52
53
54
# File 'lib/capsium/registry.rb', line 52

def version
  @version
end

Class Method Details

.newObject



43
# File 'sig/capsium/registry.rbs', line 43

def self.new: (guid: String, name: String, version: Package::Version,

Instance Method Details

#cap_file_nameString

The canonical store file name for this entry's .cap.

Returns:

  • (String)


54
# File 'lib/capsium/registry.rb', line 54

def cap_file_name = "#{name}-#{version}.cap"