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 |
# File 'lib/slack/web/api/endpoints/bookmarks.rb', line 30 def bookmarks_add( = {}) 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.
51 52 53 |
# File 'lib/slack/web/api/endpoints/bookmarks.rb', line 51 def bookmarks_edit( = {}) post('bookmarks.edit', ) end |
#bookmarks_list(options = {}) ⇒ Object
List bookmark for the channel.
62 63 64 |
# File 'lib/slack/web/api/endpoints/bookmarks.rb', line 62 def bookmarks_list( = {}) post('bookmarks.list', ) end |
#bookmarks_remove(options = {}) ⇒ Object
Remove bookmark from the channel.
77 78 79 |
# File 'lib/slack/web/api/endpoints/bookmarks.rb', line 77 def bookmarks_remove( = {}) post('bookmarks.remove', ) end |