Module: Dependabot::Gradle::Package::RepositoryDetailsHelpers
- Extended by:
- T::Sig
- Included in:
- PackageDetailsFetcher
- Defined in:
- lib/dependabot/gradle/package/package_details_fetcher.rb
Instance Method Summary collapse
Instance Method Details
#auth_headers_value(hash) ⇒ Object
60 61 62 63 64 65 |
# File 'lib/dependabot/gradle/package/package_details_fetcher.rb', line 60 def auth_headers_value(hash) value = hash.fetch("auth_headers") return value if value.is_a?(Hash) Kernel.raise TypeError, "Expected auth_headers to be a Hash" end |
#string_key_value(hash, key) ⇒ Object
52 53 54 55 56 57 |
# File 'lib/dependabot/gradle/package/package_details_fetcher.rb', line 52 def string_key_value(hash, key) value = hash.fetch(key) return value if value.is_a?(String) Kernel.raise TypeError, "Expected #{key} to be a String" end |