module Slatan::Mouth::Mpim
Public Class Methods
close(channel, options={})
click to toggle source
@see api.slack.com/methods/mpim.close
# File lib/slatan/mouth/mpim.rb, line 8 def close(channel, options={}) send('close', { channel: channel }.merge(options)) end
list(options={})
click to toggle source
@see api.slack.com/methods/mpim.list
# File lib/slatan/mouth/mpim.rb, line 15 def list(options={}) send('list', options) end
mark(channel, ts, options={})
click to toggle source
@see api.slack.com/methods/mpim.mark
# File lib/slatan/mouth/mpim.rb, line 20 def mark(channel, ts, options={}) send('mark', { channel: channel, ts: ts }.merge(options)) end
open(users, options={})
click to toggle source
@see https://api.slack.com/methods/mpim.open
@param users array: array of user
# File lib/slatan/mouth/mpim.rb, line 29 def open(users, options={}) send('open', { users: users.join(',') }.merge(options)) end
Private Class Methods
send(method, msg)
click to toggle source
# File lib/slatan/mouth/mpim.rb, line 36 def send(method, msg) Mouth.send(@category, method, msg) end