Class: Fog::Compute::Softlayer::KeyPairs
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Softlayer::KeyPairs
- Defined in:
- lib/fog/softlayer/models/compute/key_pairs.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
17 18 19 20 |
# File 'lib/fog/softlayer/models/compute/key_pairs.rb', line 17 def all data = service.get_key_pairs.body load(data) end |
#by_label(label) ⇒ Object
30 31 32 |
# File 'lib/fog/softlayer/models/compute/key_pairs.rb', line 30 def by_label(label) all.select { |key_pair| key_pair.label == label }.first end |