Module: Pod::Metrics

Defined in:
lib/cocoapods-core/metrics.rb

Overview

Allows to access metrics about pods.

This class is stored in Core because it might be used by web services.

Class Method Summary collapse

Class Method Details

.pod(name) ⇒ Hash

Returns the metrics of a pod.

Parameters:

  • name (String)

    The name of the pod.

Returns:

  • (Hash)

    The metrics for the pod.



14
15
16
# File 'lib/cocoapods-core/metrics.rb', line 14

def self.pod(name)
  peform_request("http://metrics.cocoapods.org/api/v1/pods/#{name}")
end