lib/eco/api/session/config.rb in eco-helpers-1.0.13 vs lib/eco/api/session/config.rb in eco-helpers-1.0.14
- old
+ new
@@ -272,9 +272,19 @@
else
@policies
end
end
+ def batch_policies
+ @batch_policies = self["batch_policies"] ||= Eco::API::Session::Batch::Policies.new("batch_policy")
+ if block_given?
+ yield(@batch_policies)
+ self
+ else
+ @batch_policies
+ end
+ end
+
def error_handlers
@error_handlers = self["error_handlers"] ||= Eco::API::Error::Handlers.new
if block_given?
yield(@error_handlers)
self