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