Class: DigitalOcean::Resource::SSHKey
- Inherits:
-
Base
- Object
- Base
- DigitalOcean::Resource::SSHKey
show all
- Defined in:
- lib/digital_ocean/resource/ssh_key.rb
Instance Method Summary
(collapse)
Methods inherited from Base
#initialize
Instance Method Details
- (Object) delete(id)
12
13
14
|
# File 'lib/digital_ocean/resource/ssh_key.rb', line 12
def delete(id)
@connection.delete("/ssh_keys/#{id}").body
end
|
- (Object) list
4
5
6
|
# File 'lib/digital_ocean/resource/ssh_key.rb', line 4
def list
@connection.get('/ssh_keys').body
end
|
- (Object) show(id)
8
9
10
|
# File 'lib/digital_ocean/resource/ssh_key.rb', line 8
def show(id)
@connection.get("/ssh_keys/#{id}").body
end
|