Class: GithubCLI::Starring

Inherits:
API
  • Object
show all
Defined in:
lib/github_cli/apis/starring.rb

Class Method Summary collapse

Methods inherited from API

configure, github_api, output, set_basic_auth

Class Method Details

.list(user, repo, params, options) ⇒ Object


8
9
10
11
12
# File 'lib/github_cli/apis/starring.rb', line 8

def list(user, repo, params, options)
  output options do
    github_api(options).activity.starring.list user, repo, params
  end
end

.star(user, repo, params, options) ⇒ Object


26
27
28
29
30
# File 'lib/github_cli/apis/starring.rb', line 26

def star(user, repo, params, options)
  output options do
    github_api(options).activity.starring.star user, repo, params
  end
end

.starred(params, options) ⇒ Object


14
15
16
17
18
# File 'lib/github_cli/apis/starring.rb', line 14

def starred(params, options)
  output options do
    github_api(options).activity.starring.starred params
  end
end

.starring?(user, repo, params, options) ⇒ Boolean


20
21
22
23
24
# File 'lib/github_cli/apis/starring.rb', line 20

def starring?(user, repo, params, options)
  output options do
    github_api(options).activity.starring.starring? user, repo, params
  end
end

.unstar(user, repo, params, options) ⇒ Object


32
33
34
35
36
# File 'lib/github_cli/apis/starring.rb', line 32

def unstar(user, repo, params, options)
  output options do
    github_api(options).activity.starring.unstar user, repo, params
  end
end