Class: Fog::Compute::Glesys::SshKeys
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Glesys::SshKeys
- Defined in:
- lib/fog/glesys/models/compute/ssh_keys.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
9 10 11 12 |
# File 'lib/fog/glesys/models/compute/ssh_keys.rb', line 9 def all data = service.ssh_key_list.body["response"]["sshkeys"] load(data) end |
#get(id) ⇒ Object
14 15 16 17 |
# File 'lib/fog/glesys/models/compute/ssh_keys.rb', line 14 def get(id) hash = service.ssh_key_list.body["response"]["sshkeys"].find{|a| a["id"] == id} hash.nil? ? nil : new(hash) end |