module Slatan::Mouth::Im
Public Class Methods
close(channel, options={})
click to toggle source
@see api.slack.com/methods/im.close
# File lib/slatan/mouth/im.rb, line 8 def close(channel, options={}) send('close', { channel: channel }.merge(options)) end
history(channel, options={})
click to toggle source
@see api.slack.com/methods/im.history
# File lib/slatan/mouth/im.rb, line 15 def history(channel, options={}) send('history', { channel: channel }.merge(options)) end
list(options={})
click to toggle source
@see api.slack.com/methods/im.list
# File lib/slatan/mouth/im.rb, line 22 def list(options={}) send('list', options) end
mark(channel, ts, options={})
click to toggle source
@see api.slack.com/methods/im.mark
# File lib/slatan/mouth/im.rb, line 27 def mark(channel, ts, options={}) send('mark', { channel: channel, ts: ts }.merge(options)) end
open(user, options={})
click to toggle source
@see api.slack.com/methods/im.open
# File lib/slatan/mouth/im.rb, line 35 def open(user, options={}) send('open', { user: user }.merge(options)) end
Private Class Methods
send(method, msg)
click to toggle source
# File lib/slatan/mouth/im.rb, line 42 def send(method, msg) Mouth.send(@category, method, msg) end