Module: Slatan::Mouth::Mpim

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

Class Method Summary collapse

Class Method Details

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



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

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

.list(options = {}) ⇒ Object



15
16
17
# File 'lib/slatan/mouth/mpim.rb', line 15

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

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



20
21
22
23
24
25
# File 'lib/slatan/mouth/mpim.rb', line 20

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

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

Parameters:

  • users

    array: array of user

See Also:



29
30
31
32
33
# File 'lib/slatan/mouth/mpim.rb', line 29

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