Module: Slatan::Mouth::Chat

Included in:
Slatan::Mouth
Defined in:
lib/slatan/mouth/chat.rb

Class Method Summary collapse

Class Method Details

.delete(channel, ts, options = {}) ⇒ Object



25
26
27
28
29
30
# 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 = {}) ⇒ Object



8
9
10
11
12
13
# 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 = {}) ⇒ Object



16
17
18
19
20
21
22
# 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