# File lib/fog/profitbricks/requests/compute/get_location.rb, line 31 def get_location(location_id) if loc = data[:locations]['items'].find do |lo| lo["id"] == location_id end else raise Excon::Error::HTTPStatus, "Resource does not exist" end response = Excon::Response.new response.status = 200 response.body = loc response end