Class: Bundler::Patch::GemPatch
- Inherits:
-
Object
- Object
- Bundler::Patch::GemPatch
- Defined in:
- lib/bundler/patch/advisory_consolidator.rb
Instance Attribute Summary collapse
-
#gem_name ⇒ Object
readonly
Returns the value of attribute gem_name.
-
#new_version ⇒ Object
readonly
Returns the value of attribute new_version.
-
#old_version ⇒ Object
readonly
Returns the value of attribute old_version.
-
#patched_versions ⇒ Object
readonly
Returns the value of attribute patched_versions.
Instance Method Summary collapse
-
#initialize(gem_name:, old_version: nil, new_version: nil, patched_versions: nil) ⇒ GemPatch
constructor
A new instance of GemPatch.
Constructor Details
#initialize(gem_name:, old_version: nil, new_version: nil, patched_versions: nil) ⇒ GemPatch
Returns a new instance of GemPatch.
66 67 68 69 70 71 |
# File 'lib/bundler/patch/advisory_consolidator.rb', line 66 def initialize(gem_name:, old_version: nil, new_version: nil, patched_versions: nil) @gem_name = gem_name @old_version = old_version @new_version = new_version @patched_versions = patched_versions end |
Instance Attribute Details
#gem_name ⇒ Object (readonly)
Returns the value of attribute gem_name.
64 65 66 |
# File 'lib/bundler/patch/advisory_consolidator.rb', line 64 def gem_name @gem_name end |
#new_version ⇒ Object (readonly)
Returns the value of attribute new_version.
64 65 66 |
# File 'lib/bundler/patch/advisory_consolidator.rb', line 64 def new_version @new_version end |
#old_version ⇒ Object (readonly)
Returns the value of attribute old_version.
64 65 66 |
# File 'lib/bundler/patch/advisory_consolidator.rb', line 64 def old_version @old_version end |
#patched_versions ⇒ Object (readonly)
Returns the value of attribute patched_versions.
64 65 66 |
# File 'lib/bundler/patch/advisory_consolidator.rb', line 64 def patched_versions @patched_versions end |