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.
14 15 16 17 18 19 20 |
# File 'lib/dependabot/hex/update_checker/version_resolver.rb', line 14 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
22 23 24 |
# File 'lib/dependabot/hex/update_checker/version_resolver.rb', line 22 def latest_resolvable_version @latest_resolvable_version ||= fetch_latest_resolvable_version end |