Class: Fog::OpenStack::Compute::KeyPairs
- Inherits:
-
Fog::OpenStack::Collection
- Object
- Collection
- Fog::OpenStack::Collection
- Fog::OpenStack::Compute::KeyPairs
- Defined in:
- lib/fog/openstack/compute/models/key_pairs.rb
Instance Attribute Summary
Attributes inherited from Fog::OpenStack::Collection
Instance Method Summary collapse
Methods inherited from Fog::OpenStack::Collection
#destroy, #find_by_id, #load_response, #summary
Instance Method Details
#all(options = {}) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/fog/openstack/compute/models/key_pairs.rb', line 10 def all( = {}) items = [] service.list_key_pairs().body['keypairs'].each do |kp| items += kp.values end # TODO: convert to load_response? load(items) end |