lib/soapy_cake/admin.rb in soapy_cake-1.9.2 vs lib/soapy_cake/admin.rb in soapy_cake-1.10.0
- old
+ new
@@ -74,10 +74,13 @@
def traffic(opts = {})
run Request.new(:admin, :reports, :traffic_export, opts)
end
- def caps(opts = {})
+ def caps(opts)
+ require_params(opts, %i(start_date end_date))
+ translate_values!(opts, %i(cap_type_id))
+
run Request.new(:admin, :reports, :caps, opts)
end
def exchange_rates(opts)
require_params(opts, %i(start_date end_date))