Module: Redlics::Counter
Overview
Counter class
Constant Summary collapse
Instance Method Summary collapse
-
#count(*args, &block) ⇒ Array
Count for a given event and object id with options.
Instance Method Details
#count(*args, &block) ⇒ Array
Count for a given event and object id with options.
15 16 17 18 19 |
# File 'lib/redlics/counter.rb', line 15 def count(*args, &block) return count_with_block(&block) if block_given? return count_with_hash(args.first) if args.first.is_a?(Hash) count_with_args(*args) end |