Sha256: 6f9e86d2b28cc7a65712e0aaf5b941735cdcd68b8331feb427a33863ed0ceef2
Contents?: true
Size: 481 Bytes
Versions: 3
Compression:
Stored size: 481 Bytes
Contents
module Hcloud class SSHKey Attributes = { id: nil, name: nil, fingerprint: nil, public_key: nil } include EntryLoader def update(name:) j = Oj.load(request("ssh_keys/#{id.to_i}", j: {name: name}, method: :put).run.body) SSHKey.new(j["ssh_key"], self, client) end def destroy request("ssh_keys/#{id}", method: :delete).run.body true end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hcloud-0.1.1 | lib/hcloud/ssh_key.rb |
hcloud-0.1.0 | lib/hcloud/ssh_key.rb |
hcloud-0.1.0.pre.alpha4 | lib/hcloud/ssh_key.rb |