diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-02 12:01:01 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-02 12:01:01 -0400 |
commit | 08e040d2b79213e5632492f0b6f5e34924a99e4f (patch) | |
tree | bc4db165a777681338cfde7539df08f48ee65a20 /mwapi.rb | |
parent | 396672dbb215330a1f70960429ca516ee441ae9c (diff) |
It's been a while since I made a commit
Diffstat (limited to 'mwapi.rb')
-rw-r--r-- | mwapi.rb | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2,7 +2,7 @@ require 'rest_client' require 'json' #require 'open-uri' -require 'pp' + class MWApi def initialize(api) @api = api @@ -114,7 +114,8 @@ class MWApi end def watch end - def patrol + def patrol(params = {}) + post(params.merge({:action => :patrol})) end def import end |