module Slatan::Mouth::Chat
Public Class Methods
delete(channel, ts, options={})
click to toggle source
@see api.slack.com/methods/chat.delete
# File lib/slatan/mouth/chat.rb, line 25 def delete(channel, ts, options={}) send('delete', { ts: ts, channel: channel }.merge(options)) end
post_message(channel, text, options={})
click to toggle source
@see api.slack.com/methods/chat.postMessage
# File lib/slatan/mouth/chat.rb, line 8 def post_message(channel, text, options={}) send('postMessage', { channel: channel, text: text }.merge(options)) end
update(ts, channel, text, options={})
click to toggle source
@see api.slack.com/methods/chat.update
# File lib/slatan/mouth/chat.rb, line 16 def update(ts, channel, text, options={}) send('update', { ts: ts, channel: channel, text: text }.merge(options)) end
Private Class Methods
send(method, msg)
click to toggle source
# File lib/slatan/mouth/chat.rb, line 33 def send(method, msg) Mouth.send(@category, method, msg) end