Sha256: 062914f34de5f7da4d46dc92d4f81eea887745c9159f7e6a6daaf31555425212

Contents?: true

Size: 937 Bytes

Versions: 2

Compression:

Stored size: 937 Bytes

Contents

# encoding: utf-8

module GithubCLI
  class Statistics < API

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

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

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

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

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

  end # Statistics
end # GithubCLI

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
github_cli-0.6.2 lib/github_cli/apis/statistics.rb
github_cli-0.6.1 lib/github_cli/apis/statistics.rb