lib/backburner/async_proxy.rb in backburner-0.0.1 vs lib/backburner/async_proxy.rb in backburner-0.0.2

- old
+ new

@@ -6,11 +6,14 @@ end end unless defined?(::BasicObject) # Class allows async task to be proxied class AsyncProxy < BasicObject - # AsyncProxy(User, 10, :pri => 1000, :ttr => 1000) # Options include `pri` (priority), `delay` (delay in secs), `ttr` (time to respond) + # + # @example + # AsyncProxy(User, 10, :pri => 1000, :ttr => 1000) + # def initialize(klazz, id=nil, opts={}) @klazz, @id, @opts = klazz, id, opts end # Enqueue as job when a method is invoked \ No newline at end of file