Class: Fog::Compute::DigitalOcean::SshKeys
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::DigitalOcean::SshKeys
- Defined in:
- lib/fog/digitalocean/models/compute/ssh_keys.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
11 12 13 14 |
# File 'lib/fog/digitalocean/models/compute/ssh_keys.rb', line 11 def all data = service.list_ssh_keys.body['ssh_keys'] load(data) end |
#get(uri) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/fog/digitalocean/models/compute/ssh_keys.rb', line 16 def get(uri) data = service.get_ssh_key(uri).body['ssh_key'] new(data) rescue Fog::Errors::NotFound nil end |