Sha256: d81ffbc450cbdea0a79bc2b609e1503182e5a3f14afb4f6e6bb3a0fa22b286e4

Contents?: true

Size: 670 Bytes

Versions: 2

Compression:

Stored size: 670 Bytes

Contents

# encoding: utf-8

module GithubCLI
  class Download < API

    class << self

      def all(user, repo, params)
        github_api.repos.downloads.list user, repo, params
      end

      def get(user, repo, id, params)
        github_api.repos.downloads.get user, repo, id, params
      end

      def create(user, repo, params)
        github_api.repos.downloads.create user, repo, params
      end

      def upload(resource, filename)
        github_api.repos.downloads.upload resource, filename
      end

      def delete(user, repo, id, params)
        github_api.repos.downloads.delete user, repo, id, params
      end
    end

  end # Download
end # GithubCLI

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
github_cli-0.2.1 lib/github_cli/apis/download.rb
github_cli-0.2.0 lib/github_cli/apis/download.rb