Class: GithubCLI::Authorization

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

Constant Summary

Constants inherited from API

GithubCLI::API::ENDPOINT

Class Method Summary collapse

Methods inherited from API

configure_api, github_api, output

Class Method Details

.all(params, format) ⇒ Object



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

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

.create(params, format) ⇒ Object



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

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

.delete(id, params, format) ⇒ Object



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

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

.get(id, params, format) ⇒ Object



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

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

.update(id, params, format) ⇒ Object



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

def update(id, params, format)
  output format do
    github_api.oauth.update id, params
  end
end