File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
lib/fastlane/plugin/wpmreleasetoolkit/helper Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 4
4
5
5
module Fastlane
6
6
module WPMRT
7
+ # A helper class to build an App Size Metrics payload and send it to a server (or write it to disk)
8
+ #
9
+ # The payload generated (and sent) by this helper conforms to the API for grouped metrics described in
10
+ # https://github.com/Automattic/apps-metrics
11
+ #
7
12
class AppSizeMetricsHelper
8
13
# @param [Hash] group_meta Metadata common to all the metrics. Can be any arbitrary set of key/value pairs.
9
14
#
@@ -12,9 +17,9 @@ def initialize(group_meta = {})
12
17
@metrics = [ ]
13
18
end
14
19
15
- # Sets the metadata for the whole group of metrics in that payload
20
+ # Sets the metadata common to the whole group of metrics in the payload being built by this helper instance
16
21
#
17
- # @param [Hash] hash The metadata common to all the metrics to set on the whole payload . Can be any arbitrary set of key/value pairs
22
+ # @param [Hash] hash The metadata common to all the metrics of the payload built by that helper instance . Can be any arbitrary set of key/value pairs
18
23
#
19
24
def meta = ( hash )
20
25
@meta = ( hash . compact || { } ) . map { |key , value | { name : key . to_s , value : value } }
You can’t perform that action at this time.
0 commit comments