Module: Slatan::Mouth::Groups

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

Class Method Summary collapse

Class Method Details

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



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

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

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



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

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

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



22
23
24
25
26
# File 'lib/slatan/mouth/groups.rb', line 22

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

.list(options = {}) ⇒ Object



29
30
31
# File 'lib/slatan/mouth/groups.rb', line 29

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

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



34
35
36
37
38
39
# File 'lib/slatan/mouth/groups.rb', line 34

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

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



42
43
44
45
46
# File 'lib/slatan/mouth/groups.rb', line 42

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

.set_purpose(channel, purpose, options = {}) ⇒ Object



49
50
51
52
53
54
# File 'lib/slatan/mouth/groups.rb', line 49

def set_purpose(channel, purpose, options={})
  send('setPurpose', {
    channel: channel,
    purpose: purpose
  }.merge(options))
end

.set_topic(channel, topic, options = {}) ⇒ Object



57
58
59
60
61
62
# File 'lib/slatan/mouth/groups.rb', line 57

def set_topic(channel, topic, options={})
  send('setTopic', {
    channel: channel,
    topic: topic
  }.merge(options))
end