Module: Slack::Web::Api::Endpoints::SlackListsItems
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/slackLists_items.rb
Instance Method Summary collapse
-
#slackLists_items_create(options = {}) ⇒ Object
Add a new item to an existing List.
-
#slackLists_items_delete(options = {}) ⇒ Object
Deletes an item from an existing List.
-
#slackLists_items_deleteMultiple(options = {}) ⇒ Object
Deletes multiple items from an existing List.
-
#slackLists_items_info(options = {}) ⇒ Object
Get a row from a List.
-
#slackLists_items_list(options = {}) ⇒ Object
Get records from a List.
-
#slackLists_items_update(options = {}) ⇒ Object
Updates cells in a List.
Instance Method Details
#slackLists_items_create(options = {}) ⇒ Object
Add a new item to an existing List.
22 23 24 25 |
# File 'lib/slack/web/api/endpoints/slackLists_items.rb', line 22 def slackLists_items_create( = {}) raise ArgumentError, 'Required arguments :list_id missing' if [:list_id].nil? post('slackLists.items.create', ) end |
#slackLists_items_delete(options = {}) ⇒ Object
Deletes an item from an existing List.
36 37 38 39 40 |
# File 'lib/slack/web/api/endpoints/slackLists_items.rb', line 36 def slackLists_items_delete( = {}) raise ArgumentError, 'Required arguments :list_id missing' if [:list_id].nil? raise ArgumentError, 'Required arguments :id missing' if [:id].nil? post('slackLists.items.delete', ) end |
#slackLists_items_deleteMultiple(options = {}) ⇒ Object
Deletes multiple items from an existing List.
51 52 53 54 55 |
# File 'lib/slack/web/api/endpoints/slackLists_items.rb', line 51 def slackLists_items_deleteMultiple( = {}) raise ArgumentError, 'Required arguments :list_id missing' if [:list_id].nil? raise ArgumentError, 'Required arguments :ids missing' if [:ids].nil? post('slackLists.items.deleteMultiple', ) end |
#slackLists_items_info(options = {}) ⇒ Object
Get a row from a List.
68 69 70 71 72 |
# File 'lib/slack/web/api/endpoints/slackLists_items.rb', line 68 def slackLists_items_info( = {}) raise ArgumentError, 'Required arguments :list_id missing' if [:list_id].nil? raise ArgumentError, 'Required arguments :id missing' if [:id].nil? post('slackLists.items.info', ) end |
#slackLists_items_list(options = {}) ⇒ Object
Get records from a List.
87 88 89 90 91 92 93 94 95 96 |
# File 'lib/slack/web/api/endpoints/slackLists_items.rb', line 87 def slackLists_items_list( = {}) raise ArgumentError, 'Required arguments :list_id missing' if [:list_id].nil? if block_given? Pagination::Cursor.new(self, :slackLists_items_list, ).each do |page| yield page end else post('slackLists.items.list', ) end end |
#slackLists_items_update(options = {}) ⇒ Object
Updates cells in a List.
107 108 109 110 111 |
# File 'lib/slack/web/api/endpoints/slackLists_items.rb', line 107 def slackLists_items_update( = {}) raise ArgumentError, 'Required arguments :list_id missing' if [:list_id].nil? raise ArgumentError, 'Required arguments :cells missing' if [:cells].nil? post('slackLists.items.update', ) end |