Module: Slack::Web::Api::Endpoints::Bookmarks
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/bookmarks.rb
Instance Method Summary collapse
-
#bookmarks_add(options = {}) ⇒ Object
Add bookmark to a channel.
-
#bookmarks_edit(options = {}) ⇒ Object
Edit bookmark.
-
#bookmarks_list(options = {}) ⇒ Object
List bookmark for the channel.
-
#bookmarks_remove(options = {}) ⇒ Object
Remove bookmark from the channel.
Instance Method Details
#bookmarks_add(options = {}) ⇒ Object
Add bookmark to a channel.
28 29 30 31 32 33 |
# File 'lib/slack/web/api/endpoints/bookmarks.rb', line 28 def bookmarks_add( = {}) raise ArgumentError, 'Required arguments :channel_id missing' if [:channel_id].nil? raise ArgumentError, 'Required arguments :title missing' if [:title].nil? raise ArgumentError, 'Required arguments :type missing' if [:type].nil? post('bookmarks.add', ) end |
#bookmarks_edit(options = {}) ⇒ Object
Edit bookmark.
50 51 52 53 54 |
# File 'lib/slack/web/api/endpoints/bookmarks.rb', line 50 def bookmarks_edit( = {}) raise ArgumentError, 'Required arguments :bookmark_id missing' if [:bookmark_id].nil? raise ArgumentError, 'Required arguments :channel_id missing' if [:channel_id].nil? post('bookmarks.edit', ) end |
#bookmarks_list(options = {}) ⇒ Object
List bookmark for the channel.
63 64 65 66 |
# File 'lib/slack/web/api/endpoints/bookmarks.rb', line 63 def bookmarks_list( = {}) raise ArgumentError, 'Required arguments :channel_id missing' if [:channel_id].nil? post('bookmarks.list', ) end |
#bookmarks_remove(options = {}) ⇒ Object
Remove bookmark from the channel.
79 80 81 82 83 |
# File 'lib/slack/web/api/endpoints/bookmarks.rb', line 79 def bookmarks_remove( = {}) raise ArgumentError, 'Required arguments :bookmark_id missing' if [:bookmark_id].nil? raise ArgumentError, 'Required arguments :channel_id missing' if [:channel_id].nil? post('bookmarks.remove', ) end |