Class: DependencyBot::DependencyGem
- Inherits:
-
Object
- Object
- DependencyBot::DependencyGem
- Defined in:
- lib/dependency_bot/dependency_gem.rb
Overview
This class represents a dependency gem. It is initialized with a name and provides access to that name. It can be extended in the future to include more functionality related to dependency management.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:) ⇒ DependencyGem
constructor
A new instance of DependencyGem.
Constructor Details
#initialize(name:) ⇒ DependencyGem
Returns a new instance of DependencyGem.
10 11 12 |
# File 'lib/dependency_bot/dependency_gem.rb', line 10 def initialize(name:) @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/dependency_bot/dependency_gem.rb', line 8 def name @name end |