Class: Gem::Guardian::Registry::Entry

Inherits:
Data
  • Object
show all
Defined in:
lib/gem/guardian/registry.rb

Overview

One latest gem entry discovered from a registry index.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



17
18
19
# File 'lib/gem/guardian/registry.rb', line 17

def name
  @name
end

#platformObject (readonly)

Returns the value of attribute platform

Returns:

  • (Object)

    the current value of platform



17
18
19
# File 'lib/gem/guardian/registry.rb', line 17

def platform
  @platform
end

#sourceObject (readonly)

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



17
18
19
# File 'lib/gem/guardian/registry.rb', line 17

def source
  @source
end

#versionObject (readonly)

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



17
18
19
# File 'lib/gem/guardian/registry.rb', line 17

def version
  @version
end

Instance Method Details

#dependencyObject

Converts this registry entry into a gem-guardian dependency.



19
20
21
# File 'lib/gem/guardian/registry.rb', line 19

def dependency
  Dependency.new(name:, version:, platform:, source:)
end