module Wework

the file copy from here github.com/Eric-Guo/wechat/blob/master/lib/wechat/cipher.rb

Constants

AGENT_SSO_AUTHORIZE_ENDPOINT
API_ENDPOINT
APP_AUTHORIZE_ENDPOINT
AUTHORIZE_ENDPOINT
GLOBAL_CODES
HTTP_OK_STATUS
REGISTER_ENDPOINT
SSO_AUTHORIZE_ENDPOINT
SUCCESS_CODE
VERSION

Public Class Methods

config() click to toggle source
# File lib/wework/config.rb, line 8
def config
  @config ||= Config.new
end
configure() { |config| ... } click to toggle source
# File lib/wework/config.rb, line 4
def configure
  yield config
end
expired_shift_seconds() click to toggle source
# File lib/wework/config.rb, line 20
def expired_shift_seconds
  config.expired_shift_seconds || 100
end
http_timeout_options() click to toggle source
# File lib/wework/config.rb, line 16
def http_timeout_options
  config.http_timeout_options || {write: 2, connect: 5, read: 10}
end
redis() click to toggle source
# File lib/wework/config.rb, line 12
def redis
  config.redis
end