Module: SlackMsgr

Defined in:
lib/slack_msgr.rb,
lib/slack_msgr/chat.rb,
lib/config/constants.rb,
lib/slack_msgr/users.rb,
lib/utils/error_handling.rb,
lib/slack_msgr/authenticate.rb,
lib/slack_msgr/slack_method.rb,
lib/slack_msgr/configuration.rb,
lib/slack_msgr/conversations.rb

Overview

Main module housing all classes, modules and methods for SlackMsgr

Defined Under Namespace

Modules: ErrorHandling Classes: Authenticate, Chat, Configuration, Conversations, SlackMethod, Users

Constant Summary collapse

GITHUB_REPO =
'https://github.com/rdavid1099/slack-msgr'
SLACK_URL =
'https://slack.com'
VERSION =
'0.0.7'

Class Method Summary collapse

Class Method Details

.chat(method, opts = {}) ⇒ Object



17
18
19
# File 'lib/slack_msgr.rb', line 17

def chat(method, opts = {})
  Chat.call(method, opts)
end

.configurationObject



8
9
10
# File 'lib/slack_msgr.rb', line 8

def configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



12
13
14
15
# File 'lib/slack_msgr.rb', line 12

def configure
  yield(configuration)
  nil
end

.conversations(method, **opts) ⇒ Object



25
26
27
# File 'lib/slack_msgr.rb', line 25

def conversations(method, **opts)
  Conversations.call(method, opts)
end

.users(*methods, **opts) ⇒ Object



21
22
23
# File 'lib/slack_msgr.rb', line 21

def users(*methods, **opts)
  Users.call(methods, opts)
end