lib/fnordmetric/namespace.rb in fnordmetric-0.5.9 vs lib/fnordmetric/namespace.rb in fnordmetric-0.6.0

- old
+ new

@@ -75,9 +75,10 @@ end def events(_ids, opts={}) return FnordMetric::Event.all(extend_opts(opts)) if _ids == :all return FnordMetric::Event.by_type(opts.delete(:type), extend_opts(opts)) if _ids == :by_type + return FnordMetric::Event.by_session_key(opts.delete(:session_key), extend_opts(opts)) if _ids == :by_session_key end def method_missing(m, *args, &block) raise "unknown option: #{m}" unless @@opts.include?(m) send(:"opt_#{m}", *args, &block)