lib/processout/event.rb in processout-2.14.0 vs lib/processout/event.rb in processout-2.14.4

- old
+ new

@@ -230,39 +230,8 @@ return_values[0] end - # Find an event by the Resource ID that generated it. - # Params: - # +resource_id+:: Resource ID - # +options+:: +Hash+ of options - def find_by_resource_id(resource_id, options = {}) - self.prefill(options) - - request = Request.new(@client) - path = "/events/by_resource_id/" + CGI.escape(resource_id) + "" - data = { - - } - - response = Response.new(request.get(path, data, options)) - return_values = Array.new - - a = Array.new - body = response.body - for v in body['events'] - tmp = Event.new(@client) - tmp.fill_with_data(v) - a.push(tmp) - end - - return_values.push(a) - - - - return_values[0] - end - end end