Class: CompactIndex::Dependency
- Inherits:
-
Struct
- Object
- Struct
- CompactIndex::Dependency
- Defined in:
- lib/compact_index/dependency.rb
Instance Attribute Summary collapse
-
#checksum ⇒ Object
Returns the value of attribute checksum.
-
#gem ⇒ Object
Returns the value of attribute gem.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
Instance Attribute Details
#checksum ⇒ Object
Returns the value of attribute checksum
2 3 4 |
# File 'lib/compact_index/dependency.rb', line 2 def checksum @checksum end |
#gem ⇒ Object
Returns the value of attribute gem
2 3 4 |
# File 'lib/compact_index/dependency.rb', line 2 def gem @gem end |
#platform ⇒ Object
Returns the value of attribute platform
2 3 4 |
# File 'lib/compact_index/dependency.rb', line 2 def platform @platform end |
#version ⇒ Object
Returns the value of attribute version
2 3 4 |
# File 'lib/compact_index/dependency.rb', line 2 def version @version end |
Instance Method Details
#version_and_platform ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/compact_index/dependency.rb', line 3 def version_and_platform if platform.nil? || platform == 'ruby' version.dup else "#{version}-#{platform}" end end |