# File lib/fog/profitbricks/requests/compute/get_snapshot.rb, line 52 def get_snapshot(snapshot_id) if snapshot = data[:snapshots]['items'].find do |attrib| attrib["id"] == snapshot_id end else raise Excon::Error::HTTPStatus, 'Resource does not exist' end response = Excon::Response.new response.status = 200 response.body = snapshot response end