Sha256: 298f5f668681962dfa7365f9d16b78a6f9846c25a070d68d610531ee78a910b5

Contents?: true

Size: 1.34 KB

Versions: 17

Compression:

Stored size: 1.34 KB

Contents

# encoding: utf-8

module GithubCLI
  class Gist < API

    class << self

      def all(params, format)
        output format do
          github_api.gists.list params
        end
      end

      def starred(params, format)
        output format do
          github_api.gists.starred params
        end
      end

      def get(id, params, format)
        output format do
          github_api.gists.get id, params
        end
      end

      def create(params, format)
        output format do
          github_api.gists.create params
        end
      end

      def edit(id, params, format)
        output format do
          github_api.gists.edit id, params
        end
      end

      def star(id, params, format)
        output format do
          github_api.gists.star id, params
        end
      end

      def unstar(id, params, format)
        output format do
          github_api.gists.unstar id, params
        end
      end

      def starred?(id, params, format)
        output format do
          github_api.gists.starred? id, params
        end
      end

      def fork(id, params, format)
        output format do
          github_api.gists.fork id, params
        end
      end

      def delete(id, params, format)
        output format do
          github_api.gists.delete id, params
        end
      end
    end

  end # Gist
end # GithubCLI

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
github_cli-0.5.9 lib/github_cli/apis/gist.rb
github_cli-0.5.8 lib/github_cli/apis/gist.rb
github_cli-0.5.7 lib/github_cli/apis/gist.rb
github_cli-0.5.6 lib/github_cli/apis/gist.rb
github_cli-0.5.5 lib/github_cli/apis/gist.rb
github_cli-0.5.4 lib/github_cli/apis/gist.rb
github_cli-0.5.3 lib/github_cli/apis/gist.rb
github_cli-0.5.2 lib/github_cli/apis/gist.rb
github_cli-0.5.1 lib/github_cli/apis/gist.rb
github_cli-0.5.0 lib/github_cli/apis/gist.rb
github_cli-0.4.4 lib/github_cli/apis/gist.rb
github_cli-0.4.3 lib/github_cli/apis/gist.rb
github_cli-0.4.2 lib/github_cli/apis/gist.rb
github_cli-0.4.1 lib/github_cli/apis/gist.rb
github_cli-0.4.0 lib/github_cli/apis/gist.rb
github_cli-0.3.1 lib/github_cli/apis/gist.rb
github_cli-0.3.0 lib/github_cli/apis/gist.rb