Module: Slack::Web::Im

Included in:
Slack::Web
Defined in:
lib/slack/web/im.rb

Constant Summary collapse

SCOPE =
"im"

Instance Method Summary collapse

Instance Method Details

#im_close(channel) ⇒ Object

Close a direct message channel.



7
8
9
# File 'lib/slack/web/im.rb', line 7

def im_close(channel)
  raise NotImplementedError.new("Not yet implemented, feel free to make a pull request")
end

#im_history(channel, latest, oldest, inclusive, count) ⇒ Object

Fetches history of messages and events from direct message channel.



12
13
14
# File 'lib/slack/web/im.rb', line 12

def im_history(channel, latest, oldest, inclusive, count)
  raise NotImplementedError.new("Not yet implemented, feel free to make a pull request")
end

#im_listObject

Lists direct message channels for the calling user.



17
18
19
20
# File 'lib/slack/web/im.rb', line 17

def im_list
  response = @session.do_get "#{SCOPE}.list"
  Slack::parse_response(response)
end

#im_mark(channel, ts) ⇒ Object

Sets the read cursor in a direct message channel.



23
24
25
# File 'lib/slack/web/im.rb', line 23

def im_mark(channel, ts)
  raise NotImplementedError.new("Not yet implemented, feel free to make a pull request")
end

#im_open(user) ⇒ Object

Opens a direct message channel.



28
29
30
# File 'lib/slack/web/im.rb', line 28

def im_open(user)
  raise NotImplementedError.new("Not yet implemented, feel free to make a pull request")
end