class Fog::Compute::Packet::SshKey
Attributes
options[RW]
Public Class Methods
new(attributes = {})
click to toggle source
Calls superclass method
# File lib/fog/compute/packet/models/ssh_key.rb, line 18 def initialize(attributes = {}) super end
Public Instance Methods
destroy()
click to toggle source
# File lib/fog/compute/packet/models/ssh_key.rb, line 42 def destroy requires :id response = service.delete_ssh_key(id) true if response.status == 204 end
save()
click to toggle source
# File lib/fog/compute/packet/models/ssh_key.rb, line 22 def save requires :label, :key options = {} options[:label] = label options[:key] = key response = service.create_ssh_key(options) merge_attributes(response.body) end
update()
click to toggle source
# File lib/fog/compute/packet/models/ssh_key.rb, line 32 def update requires :id options = {} options[:label] = label options[:key] = key response = service.update_ssh_key(id, options) merge_attributes(response.body) end