module Slatan::Mouth::Pins
Public Class Methods
add(channel, options={})
click to toggle source
@see api.slack.com/methods/pins.add
# File lib/slatan/mouth/pins.rb, line 8 def add(channel, options={}) send('add', { channel: channel }.merge(options)) end
remove(channel, options={})
click to toggle source
@see api.slack.com/methods/pins.remove
# File lib/slatan/mouth/pins.rb, line 15 def remove(channel, options={}) send('remove', { channel: channel }.merge(options)) end
Private Class Methods
send(method, msg)
click to toggle source
# File lib/slatan/mouth/pins.rb, line 22 def send(method, msg) Mouth.send(@category, method, msg) end