Method: Github::Client::Authorizations#update

Defined in:
lib/github_api/client/authorizations.rb

#update(*args) ⇒ Object Also known as: edit

Update an existing authorization

Examples:

github = Github.new basic_auth: 'login:password'
github.oauth.update "authorization-id", add_scopes: ["repo"]

Parameters:

  • inputs (Hash)
  • params (Hash)

    a customizable set of options

See Also:



110
111
112
113
114
115
# File 'lib/github_api/client/authorizations.rb', line 110

def update(*args)
  raise_authentication_error unless authenticated?
  arguments(args, required: [:id])

  patch_request("/authorizations/#{arguments.id}", arguments.params)
end