Class: Homebrew::API::JSONDownload Private
- Includes:
- Downloadable
- Defined in:
- api/json_download.rb
This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.
Instance Attribute Summary
Attributes included from Downloadable
#checksum, #mirrors, #phase, #url
Instance Method Summary collapse
- #download_queue_type ⇒ String private
- #downloader ⇒ API::JSONDownloadStrategy private
- #initialize(url, target:, stale_seconds:) ⇒ void constructor private
Methods included from Downloadable
#cached_download, #clear_cache, #download_queue_name, #download_strategy, #downloaded!, #downloaded?, #downloading!, #extracting!, #fetch, #fetched_size, #freeze, #initialize_dup, #total_size, #verify_download_integrity, #version
Methods included from Utils::Output::Mixin
#odebug, #odeprecated, #odie, #odisabled, #ofail, #oh1, #oh1_title, #ohai, #ohai_title, #onoe, #opoo, #opoo_outside_github_actions, #pretty_duration, #pretty_installed, #pretty_outdated, #pretty_uninstalled
Methods included from Context
current, current=, #debug?, #quiet?, #verbose?, #with_context
Constructor Details
#initialize(url, target:, stale_seconds:) ⇒ void
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
39 40 41 42 43 44 |
# File 'api/json_download.rb', line 39 def initialize(url, target:, stale_seconds:) super() @url = T.let(URL.new(url, using: API::JSONDownloadStrategy, target:, stale_seconds:), URL) @target = target @stale_seconds = stale_seconds end |
Instance Method Details
#download_queue_type ⇒ String
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
52 |
# File 'api/json_download.rb', line 52 def download_queue_type = "JSON API" |
#downloader ⇒ API::JSONDownloadStrategy
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
47 48 49 |
# File 'api/json_download.rb', line 47 def downloader T.cast(super, API::JSONDownloadStrategy) end |