class Fog::Compute::Glesys::SshKeys

Public Instance Methods

all() click to toggle source
# 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) click to toggle source
# 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