Module: Slack::Endpoint::Search
- Included in:
- Slack::Endpoint
- Defined in:
- lib/slack/endpoint/search.rb
Instance Method Summary collapse
-
#search_all(options = {}) ⇒ Object
Searches for messages and files matching a query.
-
#search_files(options = {}) ⇒ Object
Searches for files matching a query.
-
#search_messages(options = {}) ⇒ Object
Searches for messages matching a query.
Instance Method Details
#search_all(options = {}) ⇒ Object
Searches for messages and files matching a query.
20 21 22 23 |
# File 'lib/slack/endpoint/search.rb', line 20 def search_all(={}) throw ArgumentError.new("Required arguments :query missing") if [:query].nil? post("search.all", ) end |
#search_files(options = {}) ⇒ Object
Searches for files matching a query.
39 40 41 42 |
# File 'lib/slack/endpoint/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
Searches for messages matching a query.
58 59 60 61 |
# File 'lib/slack/endpoint/search.rb', line 58 def (={}) throw ArgumentError.new("Required arguments :query missing") if [:query].nil? post("search.messages", ) end |