Module: Slatan::Mouth::Channels

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

Class Method Summary collapse

Class Method Details

.history(channel, options = {}) ⇒ Object



8
9
10
11
12
# File 'lib/slatan/mouth/channels.rb', line 8

def history(channel, options={})
  send('history', {
    channel: channel
  }.merge(options))
end

.info(channel, options = {}) ⇒ Object



15
16
17
18
19
# File 'lib/slatan/mouth/channels.rb', line 15

def info(channel, options={})
  send('info', {
    channel: channel
  }.merge(options))
end

.list(options = {}) ⇒ Object



22
23
24
# File 'lib/slatan/mouth/channels.rb', line 22

def list(options={})
  send('list', options)
end

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



27
28
29
30
31
32
# File 'lib/slatan/mouth/channels.rb', line 27

def mark(channel, ts, options={})
  send('mark', {
    channel: channel,
    ts: ts
  }.merge(options))
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, options={})
  send('setPurpose', {
    channel: channel,
    purpose: purpose
  }.merge(options))
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, options={})
  send('setTopic', {
    channel: channel,
    topic: topic
  }.merge(options))
end