Class: Fog::Compute::Packet::SshKeys
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Packet::SshKeys
- Defined in:
- lib/fog/compute/packet/models/ssh_keys.rb
Overview
SshKeys Collection
Instance Method Summary collapse
Instance Method Details
#all(project_id = "", include = "") ⇒ Object
10 11 12 13 |
# File 'lib/fog/compute/packet/models/ssh_keys.rb', line 10 def all(project_id = "", include = "") response = service.list_ssh_keys(project_id, include) load(response.body["ssh_keys"]) end |
#get(id) ⇒ Object
15 16 17 18 |
# File 'lib/fog/compute/packet/models/ssh_keys.rb', line 15 def get(id) response = service.get_ssh_key(id) new(response.body) end |