Class: GithubCLI::Statistics

Inherits:
API
  • Object
show all
Defined in:
lib/github_cli/apis/statistics.rb

Class Method Summary collapse

Methods inherited from API

configure, github_api, output, set_basic_auth

Class Method Details

.activity(user, repo, params, options) ⇒ Object


12
13
14
15
16
# File 'lib/github_cli/apis/statistics.rb', line 12

def self.activity(user, repo, params, options)
  output options do
    github_api(options).repos.stats.commit_activity user, repo, params
  end
end

.card(user, repo, params, options) ⇒ Object


30
31
32
33
34
# File 'lib/github_cli/apis/statistics.rb', line 30

def self.card(user, repo, params, options)
  output options do
    github_api(options).repos.stats.punch_card user, repo, params
  end
end

.contributors(user, repo, params, options) ⇒ Object


6
7
8
9
10
# File 'lib/github_cli/apis/statistics.rb', line 6

def self.contributors(user, repo, params, options)
  output options do
    github_api(options).repos.stats.contributors user, repo, params
  end
end

.frequency(user, repo, params, options) ⇒ Object


18
19
20
21
22
# File 'lib/github_cli/apis/statistics.rb', line 18

def self.frequency(user, repo, params, options)
  output options do
    github_api(options).repos.stats.code_frequency user, repo, params
  end
end

.participation(user, repo, params, options) ⇒ Object


24
25
26
27
28
# File 'lib/github_cli/apis/statistics.rb', line 24

def self.participation(user, repo, params, options)
  output options do
    github_api(options).repos.stats.participation user, repo, params
  end
end