Class: Buildkite::AccessToken

Inherits:
Object
  • Object
show all
Defined in:
lib/buildkite/models/access_token.rb

Class Method Summary collapse

Methods inherited from Object

#initialize, #to_ostruct

Constructor Details

This class inherits a constructor from Buildkite::Object

Class Method Details

.retrieveObject



6
7
8
9
# File 'lib/buildkite/models/access_token.rb', line 6

def retrieve
  response = Client.get_request("access-token")
  AccessToken.new response.body
end

.revokeObject



11
12
13
# File 'lib/buildkite/models/access_token.rb', line 11

def revoke
  Client.delete_request("access-token")
end