module Slack::Default
Constants
Public Class Methods
api_endpoint()
click to toggle source
Default
API endpoint from ENV or {API_ENDPOINT} @return [String]
# File lib/slack/default.rb, line 52 def api_endpoint ENV['SLACK_API_ENDPOINT'] || API_ENDPOINT end
connection_options()
click to toggle source
Default
options for Faraday::Connection @return [Hash]
# File lib/slack/default.rb, line 88 def connection_options { :headers => { :accept => default_media_type, :user_agent => user_agent }, :builder => middleware } end
default_channel()
click to toggle source
Default
Channel from ENV or {DEFAULT_CHANNEL} @return [String]
# File lib/slack/default.rb, line 70 def default_channel ENV['SLACK_DEFAULT_CHANNEL'] || DEFAULT_CHANNEL end
default_media_type()
click to toggle source
Default
media type from ENV or {MEDIA_TYPE} @return [String]
# File lib/slack/default.rb, line 58 def default_media_type ENV['SLACK_DEFAULT_MEDIA_TYPE'] || MEDIA_TYPE end
icon_url()
click to toggle source
Icon URL from ENV @return [String]
# File lib/slack/default.rb, line 82 def icon_url ENV['SLACK_ICON_URL'] end
middleware()
click to toggle source
Default
middleware stack for Faraday::Connection from {MIDDLEWARE} @return [String]
# File lib/slack/default.rb, line 101 def middleware MIDDLEWARE end
options()
click to toggle source
Configuration options @return [Hash]
# File lib/slack/default.rb, line 34 def options Hash[Slack::Configurable.keys.map{|key| [key, send(key)]}] end
team()
click to toggle source
Default
team from ENV @return [String]
# File lib/slack/default.rb, line 46 def team ENV['SLACK_TEAM'] end
token()
click to toggle source
Default
token from ENV @return [String]
# File lib/slack/default.rb, line 40 def token ENV['SLACK_TOKEN'] end
user_agent()
click to toggle source
Default
User-Agent header string from ENV or {USER_AGENT} @return [String]
# File lib/slack/default.rb, line 64 def user_agent ENV['SLACK_USER_AGENT'] || USER_AGENT end
username()
click to toggle source
Username from ENV or {DEFAULT_USERNAME} @return [String]
# File lib/slack/default.rb, line 76 def username ENV['SLACK_USERNAME'] || DEFAULT_USERNAME end