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.
24 25 26 27 |
# File 'lib/slack/endpoint/search.rb', line 24 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.
47 48 49 50 |
# File 'lib/slack/endpoint/search.rb', line 47 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.
70 71 72 73 |
# File 'lib/slack/endpoint/search.rb', line 70 def (={}) throw ArgumentError.new("Required arguments :query missing") if [:query].nil? post("search.messages", ) end |