Sha256: e4a648d1fc8683dd0307bcf4b2be84f5038adc1a121f8581f2d1f3f067086e2c

Contents?: true

Size: 887 Bytes

Versions: 6

Compression:

Stored size: 887 Bytes

Contents

# encoding: utf-8

module GithubCLI
  class Watching < API

    class << self

      def list(user, repo, params, format)
        output format do
          github_api.activity.watching.list user, repo, params
        end
      end

      def watched(params, format)
        output format do
          github_api.activity.watching.watched params
        end
      end

      def watching?(user, repo, params, format)
        output format do
          github_api.activity.watching.watching? user, repo, params
        end
      end

      def start(user, repo, params, format)
        output format do
          github_api.activity.watching.watch user, repo, params
        end
      end

      def stop(user, repo, params, format)
        output format do
          github_api.activity.watching.unwatch user, repo, params
        end
      end
    end

  end # Watching
end # GithubCLI

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
github_cli-0.5.9 lib/github_cli/apis/watching.rb
github_cli-0.5.8 lib/github_cli/apis/watching.rb
github_cli-0.5.7 lib/github_cli/apis/watching.rb
github_cli-0.5.6 lib/github_cli/apis/watching.rb
github_cli-0.5.5 lib/github_cli/apis/watching.rb
github_cli-0.5.4 lib/github_cli/apis/watching.rb