module Slatan::Mouth::Channels
Public Class Methods
history(channel, options={})
click to toggle source
@see api.slack.com/methods/channels.history
# File lib/slatan/mouth/channels.rb, line 8 def history(channel, options={}) send('history', { channel: channel }.merge(options)) end
info(channel, options={})
click to toggle source
@see api.slack.com/methods/channels.info
# File lib/slatan/mouth/channels.rb, line 15 def info(channel, options={}) send('info', { channel: channel }.merge(options)) end
list(options={})
click to toggle source
@see api.slack.com/methods/channels.list
# File lib/slatan/mouth/channels.rb, line 22 def list(options={}) send('list', options) end
mark(channel, ts, options={})
click to toggle source
@see api.slack.com/methods/channels.mark
# File lib/slatan/mouth/channels.rb, line 27 def mark(channel, ts, options={}) send('mark', { channel: channel, ts: ts }.merge(options)) end
set_purpose(channel, purpose, options={})
click to toggle source
@see api.slack.com/methods/channels.setPurpose
# File lib/slatan/mouth/channels.rb, line 35 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/channels.setTopic
# File lib/slatan/mouth/channels.rb, line 43 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/channels.rb, line 51 def send(method, msg) Mouth.send(@category, method, msg) end