lib/postmark/client.rb in postmark-1.15.0 vs lib/postmark/client.rb in postmark-1.16.0
- old
+ new
@@ -78,9 +78,13 @@
def load_batch(path, name, options)
options[:offset] ||= 0
options[:count] ||= 30
response = http_client.get(path, options)
+ format_batch_response(response, name)
+ end
+
+ def format_batch_response(response, name)
[response['TotalCount'], format_response(response[name])]
end
end
end
\ No newline at end of file