module Slatan::Mouth::Groups
Public Class Methods
close(channel, options={})
click to toggle source
@see api.slack.com/methods/groups.close
# File lib/slatan/mouth/groups.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/groups.history
# File lib/slatan/mouth/groups.rb, line 15 def history(channel, options={}) send('history', { channel: channel }.merge(options)) end
info(channel, options={})
click to toggle source
@see api.slack.com/methods/groups.info
# File lib/slatan/mouth/groups.rb, line 22 def info(channel, options={}) send('info', { channel: channel }.merge(options)) end
list(options={})
click to toggle source
@see api.slack.com/methods/groups.list
# File lib/slatan/mouth/groups.rb, line 29 def list(options={}) send('list', options) end
mark(channel, ts, options={})
click to toggle source
@see api.slack.com/methods/groups.mark
# File lib/slatan/mouth/groups.rb, line 34 def mark(channel, ts, options={}) send('mark', { channel: channel, ts: ts }.merge(options)) end
open(channel, options={})
click to toggle source
@see api.slack.com/methods/groups.open
# File lib/slatan/mouth/groups.rb, line 42 def open(channel, options={}) send('open', { channel: channel }.merge(options)) end
set_purpose(channel, purpose, options={})
click to toggle source
@see api.slack.com/methods/groups.setPurpose
# File lib/slatan/mouth/groups.rb, line 49 def set_purpose(channel, purpose, options={}) send('setPurpose', { channel: channel, purpose: purpose }.merge(options)) end
set_topic(channel, topic, options={})
click to toggle source
@see api.slack.com/methods/groups.setTopic
# File lib/slatan/mouth/groups.rb, line 57 def set_topic(channel, topic, options={}) send('setTopic', { channel: channel, topic: topic }.merge(options)) end
Private Class Methods
send(method, msg)
click to toggle source
# File lib/slatan/mouth/groups.rb, line 65 def send(method, msg) Mouth.send(@category, method, msg) end