Module: Slack::Web::Api::Endpoints::Search
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/search.rb
Instance Method Summary collapse
-
#search_all(options = {}) ⇒ Object
This method allows to to search both messages and files in a single call.
-
#search_files(options = {}) ⇒ Object
This method returns files matching a search query.
-
#search_messages(options = {}) ⇒ Object
This method returns messages matching a search query.
Instance Method Details
#search_all(options = {}) ⇒ Object
This method allows to to search both messages and files in a single call.
21 22 23 24 |
# File 'lib/slack/web/api/endpoints/search.rb', line 21 def search_all( = {}) throw ArgumentError.new('Required arguments :query missing') if [:query].nil? post('search.all', ) end |
#search_files(options = {}) ⇒ Object
This method returns files matching a search query.
39 40 41 42 |
# File 'lib/slack/web/api/endpoints/search.rb', line 39 def search_files( = {}) throw ArgumentError.new('Required arguments :query missing') if [:query].nil? post('search.files', ) end |
#search_messages(options = {}) ⇒ Object
This method returns messages matching a search query.
57 58 59 60 |
# File 'lib/slack/web/api/endpoints/search.rb', line 57 def ( = {}) throw ArgumentError.new('Required arguments :query missing') if [:query].nil? post('search.messages', ) end |