Class: Fog::Compute::OpenStack::KeyPairs
- Inherits:
-
OpenStack::Collection
- Object
- Fog::Collection
- OpenStack::Collection
- Fog::Compute::OpenStack::KeyPairs
- Defined in:
- lib/fog/compute/openstack/models/key_pairs.rb
Instance Attribute Summary
Attributes inherited from OpenStack::Collection
Instance Method Summary collapse
Methods inherited from 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/compute/openstack/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 |