Sha256: c1b2b7f4c278472b588d3303f6ac403bfb7b8378ccba6fd8da69926eaaf40e5e
Contents?: true
Size: 377 Bytes
Versions: 15
Compression:
Stored size: 377 Bytes
Contents
module Boty module Slack class IM include Slack::URL url "https://slack.com/api/im" def open(user, parameters = {}) defaults = { user: user } url = parameterize defaults.merge(parameters), path: ".open" info = URL.get(url) || {} Slack::Channel.new id: Hash(info["channel"])["id"], info: info end end end end
Version data entries
15 entries across 15 versions & 1 rubygems