diff options
author | Matthias Hecker <apoc@geekosphere.org> | 2015-06-14 20:05:45 +0200 |
---|---|---|
committer | Matthias Hecker <apoc@geekosphere.org> | 2015-06-14 20:05:45 +0200 |
commit | dd06ceee0c26703a73acb225a6500579f38c8c3e (patch) | |
tree | 5d0ed8883a73f3ca0ec522a641a1f695178597d0 /lib | |
parent | 075c7e031b3449ff026e51a2299f56df573ef688 (diff) |
journal: even more tests
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbot/journal.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/rbot/journal.rb b/lib/rbot/journal.rb index 71b0c7ff..a25f3a9f 100644 --- a/lib/rbot/journal.rb +++ b/lib/rbot/journal.rb @@ -355,7 +355,7 @@ module Journal @subscriptions.delete subscription end - def find(query, limit=100, offset=0, &block) + def find(query=nil, limit=100, offset=0, &block) if block_given? begin res = @storage.find(query, limit, offset) @@ -366,6 +366,14 @@ module Journal end end + def count(query=nil) + @storage.count(query) + end + + def remove(query=nil) + @storage.remove(query) + end + end end # Journal |