Module: Slatan::Mouth::Im
- Included in:
- Slatan::Mouth
- Defined in:
- lib/slatan/mouth/im.rb
Class Method Summary collapse
- .close(channel, options = {}) ⇒ Object
- .history(channel, options = {}) ⇒ Object
- .list(options = {}) ⇒ Object
- .mark(channel, ts, options = {}) ⇒ Object
- .open(user, options = {}) ⇒ Object
Class Method Details
.close(channel, options = {}) ⇒ Object
8 9 10 11 12 |
# File 'lib/slatan/mouth/im.rb', line 8 def close(channel, ={}) send('close', { channel: channel }.merge()) end |
.history(channel, options = {}) ⇒ Object
15 16 17 18 19 |
# File 'lib/slatan/mouth/im.rb', line 15 def history(channel, ={}) send('history', { channel: channel }.merge()) end |
.list(options = {}) ⇒ Object
22 23 24 |
# File 'lib/slatan/mouth/im.rb', line 22 def list(={}) send('list', ) end |
.mark(channel, ts, options = {}) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/slatan/mouth/im.rb', line 27 def mark(channel, ts, ={}) send('mark', { channel: channel, ts: ts }.merge()) end |
.open(user, options = {}) ⇒ Object
35 36 37 38 39 |
# File 'lib/slatan/mouth/im.rb', line 35 def open(user, ={}) send('open', { user: user }.merge()) end |