Class: Rails::Hyperdrive::LockFile::Entry
- Inherits:
-
Struct
- Object
- Struct
- Rails::Hyperdrive::LockFile::Entry
- Defined in:
- lib/rails/hyperdrive/lock_file.rb
Overview
In-memory form of one files: entry. On disk, source_gem and source_version are a single "gem@version" string; the split/join lives in this file only.
Instance Attribute Summary collapse
-
#installed_at ⇒ Object
Returns the value of attribute installed_at.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#path ⇒ Object
Returns the value of attribute path.
-
#source_gem ⇒ Object
Returns the value of attribute source_gem.
-
#source_sha ⇒ Object
Returns the value of attribute source_sha.
-
#source_version ⇒ Object
Returns the value of attribute source_version.
Instance Method Summary collapse
Instance Attribute Details
#installed_at ⇒ Object
Returns the value of attribute installed_at
16 17 18 |
# File 'lib/rails/hyperdrive/lock_file.rb', line 16 def installed_at @installed_at end |
#kind ⇒ Object
Returns the value of attribute kind
16 17 18 |
# File 'lib/rails/hyperdrive/lock_file.rb', line 16 def kind @kind end |
#path ⇒ Object
Returns the value of attribute path
16 17 18 |
# File 'lib/rails/hyperdrive/lock_file.rb', line 16 def path @path end |
#source_gem ⇒ Object
Returns the value of attribute source_gem
16 17 18 |
# File 'lib/rails/hyperdrive/lock_file.rb', line 16 def source_gem @source_gem end |
#source_sha ⇒ Object
Returns the value of attribute source_sha
16 17 18 |
# File 'lib/rails/hyperdrive/lock_file.rb', line 16 def source_sha @source_sha end |
#source_version ⇒ Object
Returns the value of attribute source_version
16 17 18 |
# File 'lib/rails/hyperdrive/lock_file.rb', line 16 def source_version @source_version end |
Instance Method Details
#source_label ⇒ Object
17 18 19 |
# File 'lib/rails/hyperdrive/lock_file.rb', line 17 def source_label source_version ? "#{source_gem}@#{source_version}" : source_gem end |