Class: GithubCLI::Email

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

Class Method Summary collapse

Methods inherited from API

configure, github_api, output, set_basic_auth

Class Method Details

.add(emails, params, options) ⇒ Object


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

def add(emails, params, options)
  output options do
    github_api(options).users.emails.add emails, params
  end
end

.all(params, options) ⇒ Object


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

def all(params, options)
  output options do
    github_api(options).users.emails.list params
  end
end

.delete(emails, params, options) ⇒ Object


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

def delete(emails, params, options)
  output options do
    github_api(options).users.emails.delete emails, params
  end
end