Class: Gem::Guardian::Registry::Entry
- Inherits:
-
Data
- Object
- Data
- Gem::Guardian::Registry::Entry
- Defined in:
- lib/gem/guardian/registry.rb
Overview
One latest gem entry discovered from a registry index.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#platform ⇒ Object
readonly
Returns the value of attribute platform.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#dependency ⇒ Object
Converts this registry entry into a gem-guardian dependency.
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name
17 18 19 |
# File 'lib/gem/guardian/registry.rb', line 17 def name @name end |
#platform ⇒ Object (readonly)
Returns the value of attribute platform
17 18 19 |
# File 'lib/gem/guardian/registry.rb', line 17 def platform @platform end |
#source ⇒ Object (readonly)
Returns the value of attribute source
17 18 19 |
# File 'lib/gem/guardian/registry.rb', line 17 def source @source end |
#version ⇒ Object (readonly)
Returns the value of attribute version
17 18 19 |
# File 'lib/gem/guardian/registry.rb', line 17 def version @version end |
Instance Method Details
#dependency ⇒ Object
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 |