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