Module: Slatan::Mouth::Channels
- Included in:
- Slatan::Mouth
- Defined in:
- lib/slatan/mouth/channels.rb
Class Method Summary collapse
- .history(channel, options = {}) ⇒ Object
- .info(channel, options = {}) ⇒ Object
- .list(options = {}) ⇒ Object
- .mark(channel, ts, options = {}) ⇒ Object
- .set_purpose(channel, purpose, options = {}) ⇒ Object
- .set_topic(channel, topic, options = {}) ⇒ Object
Class Method Details
.history(channel, options = {}) ⇒ Object
8 9 10 11 12 |
# File 'lib/slatan/mouth/channels.rb', line 8 def history(channel, ={}) send('history', { channel: channel }.merge()) end |
.info(channel, options = {}) ⇒ Object
15 16 17 18 19 |
# File 'lib/slatan/mouth/channels.rb', line 15 def info(channel, ={}) send('info', { channel: channel }.merge()) end |
.list(options = {}) ⇒ Object
22 23 24 |
# File 'lib/slatan/mouth/channels.rb', line 22 def list(={}) send('list', ) end |
.mark(channel, ts, options = {}) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/slatan/mouth/channels.rb', line 27 def mark(channel, ts, ={}) send('mark', { channel: channel, ts: ts }.merge()) end |
.set_purpose(channel, purpose, options = {}) ⇒ Object
35 36 37 38 39 40 |
# File 'lib/slatan/mouth/channels.rb', line 35 def set_purpose(channel, purpose, ={}) send('setPurpose', { channel: channel, purpose: purpose }.merge()) end |
.set_topic(channel, topic, options = {}) ⇒ Object
43 44 45 46 47 48 |
# File 'lib/slatan/mouth/channels.rb', line 43 def set_topic(channel, topic, ={}) send('setTopic', { channel: channel, topic: topic }.merge()) end |