Sha256: 0e6db1128240e53d76dfc6eba16cacfa30f3d15d124e9abfd32bbe1e8fdf0d5e
Contents?: true
Size: 709 Bytes
Versions: 1
Compression:
Stored size: 709 Bytes
Contents
module Slack module Web module Config extend self ATTRIBUTES = [ :proxy, :user_agent, :ca_path, :ca_file, :endpoint ] attr_accessor(*Config::ATTRIBUTES) def reset self.endpoint = 'https://slack.com/api/' self.user_agent = "Slack Ruby Client/#{Slack::VERSION}" self.ca_path = `openssl version -a | grep OPENSSLDIR | awk '{print $2}'|sed -e 's/\"//g'` self.ca_file = "#{ca_path}/ca-certificates.crt" end end class << self def configure block_given? ? yield(Config) : Config end def config Config end end end end Slack::Web::Config.reset
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slack-ruby-client-0.2.0 | lib/slack/web/config.rb |