Module: Slatan::Mouth::Im

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

Class Method Summary collapse

Class Method Details

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



8
9
10
11
12
# File 'lib/slatan/mouth/im.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/im.rb', line 15

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

.list(options = {}) ⇒ Object



22
23
24
# File 'lib/slatan/mouth/im.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/im.rb', line 27

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

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



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

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