Module: Homebrew::API::Analytics Private
- Defined in:
- api/analytics.rb
Overview
This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.
Helper functions for using the analytics JSON API.
Class Method Summary collapse
- .analytics_api_path ⇒ String (also: generic_analytics_api_path) private
- .fetch(category, days) ⇒ Hash{String => T.untyped} private
Class Method Details
.analytics_api_path ⇒ String Also known as: generic_analytics_api_path
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.
10 11 12 |
# File 'api/analytics.rb', line 10 def analytics_api_path "analytics" end |
.fetch(category, days) ⇒ Hash{String => T.untyped}
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.
16 17 18 |
# File 'api/analytics.rb', line 16 def fetch(category, days) Homebrew::API.fetch "#{analytics_api_path}/#{category}/#{days}d.json" end |