Class: Dependabot::FileParsers::Base
- Inherits:
-
Object
- Object
- Dependabot::FileParsers::Base
- Defined in:
- lib/dependabot/file_parsers/base.rb,
lib/dependabot/file_parsers/base/dependency_set.rb
Defined Under Namespace
Classes: DependencySet
Instance Attribute Summary collapse
-
#credentials ⇒ Object
readonly
Returns the value of attribute credentials.
-
#dependency_files ⇒ Object
readonly
Returns the value of attribute dependency_files.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(dependency_files:, source:, credentials: []) ⇒ Base
constructor
A new instance of Base.
- #parse ⇒ Object
Constructor Details
#initialize(dependency_files:, source:, credentials: []) ⇒ Base
Returns a new instance of Base.
8 9 10 11 12 13 14 |
# File 'lib/dependabot/file_parsers/base.rb', line 8 def initialize(dependency_files:, source:, credentials: []) @dependency_files = dependency_files @credentials = credentials @source = source check_required_files end |
Instance Attribute Details
#credentials ⇒ Object (readonly)
Returns the value of attribute credentials.
6 7 8 |
# File 'lib/dependabot/file_parsers/base.rb', line 6 def credentials @credentials end |
#dependency_files ⇒ Object (readonly)
Returns the value of attribute dependency_files.
6 7 8 |
# File 'lib/dependabot/file_parsers/base.rb', line 6 def dependency_files @dependency_files end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
6 7 8 |
# File 'lib/dependabot/file_parsers/base.rb', line 6 def source @source end |
Instance Method Details
#parse ⇒ Object
16 17 18 |
# File 'lib/dependabot/file_parsers/base.rb', line 16 def parse raise NotImplementedError end |