diff options
author | julien MILLAU <mxjulien@gmail.com> | 2018-03-08 12:25:10 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-03-08 12:25:10 +0300 |
commit | 7fcf35605377748f38cb1a89e88742da0ba515f8 (patch) | |
tree | f6f8aca38346ea8b74e7d4a48358d3759123b588 /lib/mattermost/session.rb | |
parent | 7734e85bc6592c5ad3330c611c5f83a051b680b0 (diff) |
Add missing delete method in mattermost session
Diffstat (limited to 'lib/mattermost/session.rb')
-rw-r--r-- | lib/mattermost/session.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/mattermost/session.rb b/lib/mattermost/session.rb index ef08bd46e17..65ccdb3c347 100644 --- a/lib/mattermost/session.rb +++ b/lib/mattermost/session.rb @@ -83,6 +83,12 @@ module Mattermost end end + def delete(path, options = {}) + handle_exceptions do + self.class.delete(path, options.merge(headers: @headers)) + end + end + private def create |