# File lib/fog/softlayer/requests/compute/get_key_pair.rb, line 12 def get_key_pair(id) response = Excon::Response.new response.status = 200 response.body = key_pair = @key_pairs.select { |kp| kp['id'] == id }.first if key_pair.nil? response.body = { "error"=>"Unable to find object with id of '#{id}'.", "code"=>"SoftLayer_Exception_ObjectNotFound" } response.status = 404 end response end