Class: Dependabot::Hex::UpdateChecker::VersionResolver
- Inherits:
-
Object
- Object
- Dependabot::Hex::UpdateChecker::VersionResolver
- Defined in:
- lib/dependabot/hex/update_checker/version_resolver.rb
Instance Method Summary collapse
-
#initialize(dependency:, credentials:, original_dependency_files:, prepared_dependency_files:) ⇒ VersionResolver
constructor
A new instance of VersionResolver.
- #latest_resolvable_version ⇒ Object
Constructor Details
#initialize(dependency:, credentials:, original_dependency_files:, prepared_dependency_files:) ⇒ VersionResolver
Returns a new instance of VersionResolver.
16 17 18 19 20 21 22 |
# File 'lib/dependabot/hex/update_checker/version_resolver.rb', line 16 def initialize(dependency:, credentials:, original_dependency_files:, prepared_dependency_files:) @dependency = dependency @original_dependency_files = original_dependency_files @prepared_dependency_files = prepared_dependency_files @credentials = credentials end |
Instance Method Details
#latest_resolvable_version ⇒ Object
24 25 26 |
# File 'lib/dependabot/hex/update_checker/version_resolver.rb', line 24 def latest_resolvable_version @latest_resolvable_version ||= fetch_latest_resolvable_version end |