Parent

Methods

Class/Module Index [+]

Quicksearch

Fog::Compute::Softlayer::KeyPairs

Public Instance Methods

all() click to toggle source
# 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) click to toggle source
# 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
get(id) click to toggle source
# File lib/fog/softlayer/models/compute/key_pairs.rb, line 22
def get(id)
  if key_pair = service.get_key_pair(id).body
    new(key_pair)
  end
rescue Fog::Network::Softlayer::NotFound
  nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.