Class: SlackChatter::Api::Search

Inherits:
Base
  • Object
show all
Defined in:
lib/slack_chatter/api/search.rb

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

#bool_as_i, #call_method, #channel_id_or_name, #initialize

Constructor Details

This class inherits a constructor from SlackChatter::Api::Base

Instance Method Details

#all(query, opts = {}) ⇒ Object



5
6
7
8
# File 'lib/slack_chatter/api/search.rb', line 5

def all query, opts={}
  opts = {"query" => query}.reverse_merge(opts)
  call_method("search", "all", opts)
end

#files(query, opts = {}) ⇒ Object



10
11
12
13
# File 'lib/slack_chatter/api/search.rb', line 10

def files query, opts={}
  opts = {"query" => query}.reverse_merge(opts)
  call_method("search", "files", opts)
end

#messages(query, opts = {}) ⇒ Object



15
16
17
18
# File 'lib/slack_chatter/api/search.rb', line 15

def messages query, opts={}
  opts = {"query" => query}.reverse_merge(opts)
  call_method("search", "messages", opts)
end