Class: Fog::Compute::IBM::Keys
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::IBM::Keys
- Defined in:
- lib/fog/ibm/models/compute/keys.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
10 11 12 |
# File 'lib/fog/ibm/models/compute/keys.rb', line 10 def all load(service.list_keys.body['keys']) end |
#default ⇒ Object
22 23 24 |
# File 'lib/fog/ibm/models/compute/keys.rb', line 22 def default find {|key| key.default? } end |
#default=(key_name) ⇒ Object
26 27 28 |
# File 'lib/fog/ibm/models/compute/keys.rb', line 26 def default=(key_name) service.modify_key(key_name, 'default' => true) end |