Sha256: 1cc1e01f11a3b1d851762442d09ae019df3d0d185b17bf9d3bc63b0dc3eeec06

Contents?: true

Size: 989 Bytes

Versions: 2

Compression:

Stored size: 989 Bytes

Contents

# encoding: utf-8

module GithubCLI
  class Notification < API

    class << self

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

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

      def mark(params, format)
        output format do
          github_api.activity.notifications.mark params
        end
      end

      def subscribed?(id, params, format)
        output format do
          github_api.activity.notifications.subscribed? id, params
        end
      end

      def create(id, params, format)
        output format do
          github_api.activity.notifications.create id, params
        end
      end

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

  end # Notification
end # GithubCLI

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
github_cli-0.5.9 lib/github_cli/apis/notification.rb
github_cli-0.5.8 lib/github_cli/apis/notification.rb