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