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.
30 31 32 33 34 35 |
# File 'lib/slack/web/api/endpoints/bookmarks.rb', line 30 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.
52 53 54 55 56 |
# File 'lib/slack/web/api/endpoints/bookmarks.rb', line 52 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.
65 66 67 68 |
# File 'lib/slack/web/api/endpoints/bookmarks.rb', line 65 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.
81 82 83 84 85 |
# File 'lib/slack/web/api/endpoints/bookmarks.rb', line 81 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 |