Module: Slack::Endpoint::Pins
- Included in:
- Slack::Endpoint
- Defined in:
- lib/slack/endpoint/pins.rb
Instance Method Summary collapse
-
#pins_add(options = {}) ⇒ Object
Pins an item to a channel.
-
#pins_list(options = {}) ⇒ Object
Lists items pinned to a channel.
-
#pins_remove(options = {}) ⇒ Object
Un-pins an item from a channel.
Instance Method Details
#pins_add(options = {}) ⇒ Object
Pins an item to a channel.
20 21 22 23 |
# File 'lib/slack/endpoint/pins.rb', line 20 def pins_add(={}) throw ArgumentError.new("Required arguments :channel missing") if [:channel].nil? post("pins.add", ) end |
#pins_list(options = {}) ⇒ Object
Lists items pinned to a channel.
33 34 35 36 |
# File 'lib/slack/endpoint/pins.rb', line 33 def pins_list(={}) throw ArgumentError.new("Required arguments :channel missing") if [:channel].nil? post("pins.list", ) end |
#pins_remove(options = {}) ⇒ Object
Un-pins an item from a channel.
52 53 54 55 |
# File 'lib/slack/endpoint/pins.rb', line 52 def pins_remove(={}) throw ArgumentError.new("Required arguments :channel missing") if [:channel].nil? post("pins.remove", ) end |