class Fog::Compute::Ecloud::SshKey
Public Instance Methods
delete()
click to toggle source
# File lib/fog/compute/ecloud/models/ssh_key.rb, line 14 def delete service.ssh_key_delete(href).body end
Also aliased as: destroy
edit(options = {})
click to toggle source
# File lib/fog/compute/ecloud/models/ssh_key.rb, line 19 def edit(options = {}) # Make sure we only pass what we should new_options = {} new_options[:uri] = href if options[:Name].nil? new_options[:Name] = name else new_options[:Name] = options[:Name] end if options[:Default].nil? new_options[:Default] = default else new_options[:Default] = options[:Default] end service.ssh_key_edit(new_options) end
id()
click to toggle source
# File lib/fog/compute/ecloud/models/ssh_key.rb, line 37 def id href.scan(/\d+/)[0] end