Module: Slatan::Mouth::Chat
- Included in:
- Slatan::Mouth
- Defined in:
- lib/slatan/mouth/chat.rb
Class Method Summary collapse
- .delete(channel, ts, options = {}) ⇒ Object
- .post_message(channel, text, options = {}) ⇒ Object
- .update(ts, channel, text, options = {}) ⇒ Object
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, ={}) send('delete', { ts: ts, channel: channel }.merge()) end |
.post_message(channel, text, options = {}) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/slatan/mouth/chat.rb', line 8 def (channel, text, ={}) send('postMessage', { channel: channel, text: text }.merge()) 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, ={}) send('update', { ts: ts, channel: channel, text: text }.merge()) end |