Class: DependencyBot::DependencyGem

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/dependency_bot/dependency_gem.rb', line 8

def name
  @name
end