lib/ecoportal/api/common/batch_operation.rb in ecoportal-api-0.10.1 vs lib/ecoportal/api/common/batch_operation.rb in ecoportal-api-0.10.2
- old
+ new
@@ -9,9 +9,13 @@
@wrapper = wrapper
@operations = []
@logger = logger
end
+ def count
+ @operations.count
+ end
+
def as_json
{
actions: @operations.map do |operation|
operation.slice(:path, :method, :body)
end